Skip to content

Instantly share code, notes, and snippets.

@mneil
Created April 4, 2017 23:36
Show Gist options
  • Save mneil/64998c5445bcd4939e8f0543a03f05d8 to your computer and use it in GitHub Desktop.
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.
# 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