Last active
May 8, 2017 20:30
-
-
Save mneil/fbc7845fe61eed09c39364f7d12eb4b8 to your computer and use it in GitHub Desktop.
Upstart Twistd Server
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 sudo twistd -no web --path /path/to/web/dir --port="tcp:8000" | |
respawn limit 20 90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With SSL