Last active
December 21, 2015 17:38
-
-
Save wrouesnel/6341544 to your computer and use it in GitHub Desktop.
sshttp daemon starter upstart script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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