Created
April 4, 2017 23:36
-
-
Save mneil/64998c5445bcd4939e8f0543a03f05d8 to your computer and use it in GitHub Desktop.
Upstart script to launch miniweb static server at boot time and serve a folder.
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
# UPSTART SCRIPT | |
# /etc/init/{taskname}.conf | |
# This task is run on startup to run miniweb which is a tiny static server | |
description "Run the miniweb web form" | |
start on (filesystem and net-device-up IFACE!=lo) | |
task | |
exec /usr/bin/miniweb -p 8000 -r /home/helios/Documents/ticket-config | |
respawn limit 20 90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment