Skip to content

Instantly share code, notes, and snippets.

@wrouesnel
Last active December 21, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wrouesnel/6341544 to your computer and use it in GitHub Desktop.
Save wrouesnel/6341544 to your computer and use it in GitHub Desktop.
sshttp daemon starter upstart script
description "Start all sshttpd instances on boot"
author "iain"
start on (local-filesystems and net-device-up)
task
script
for file in `ls /etc/sshttp.d/*.conf` ; do
filename=`basename ${file%.*}`
start sshttpd NAME=$filename
done
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment