Skip to content

Instantly share code, notes, and snippets.

@ray1729
Last active December 21, 2015 05:39
Show Gist options
  • Save ray1729/6258845 to your computer and use it in GitHub Desktop.
Save ray1729/6258845 to your computer and use it in GitHub Desktop.
Example upstart script to start Ring web app
# 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