Created
January 7, 2014 16:35
-
-
Save omphe/8302060 to your computer and use it in GitHub Desktop.
Play Framework 2.2 Upstart config
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
description "Play Framework Config" | |
author "Branden Faulls" | |
version "1.0" | |
env USER=username | |
env GROUP=username | |
env HOME=/your/project/root | |
env PORT=8080 | |
env ADDRESS=127.0.0.1 | |
env PROJECT=your_play_project | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
respawn limit 10 5 | |
umask 022 | |
expect daemon | |
exec start-stop-daemon --pidfile ${HOME}/RUNNING_PID --chuid $USER:$GROUP --exec ${HOME}/bin/${PROJECT} --background --start -- -Dhttp.port=$PORT -Dhttp.address=$ADDRESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment