Last active
December 21, 2015 05:39
-
-
Save ray1729/6258845 to your computer and use it in GitHub Desktop.
Example upstart script to start Ring web app
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
# cms - simple CMS | |
# | |
# The simple-cms server is a Compojure application serving content for cms.1729.org.uk | |
description "CMS server" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
umask 022 | |
exec su cms -s /bin/bash -c "cd /home/cms/simple-cms && lein ring server-headless 3000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment