Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
sshttp daemon starter upstart script
description "Start all sshttpd instances on boot"
author "iain"
start on (local-filesystems and net-device-up)
for file in `ls /etc/sshttp.d/*.conf` ; do
filename=`basename ${file%.*}`
start sshttpd NAME=$filename
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment