-
-
Save davidkeen/9031384 to your computer and use it in GitHub Desktop.
Upstart script for Play Framework 2.2.
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" | |
env USER=username | |
env GROUP=username | |
env HOME=/your/project/root | |
env PORT=8080 | |
env ADDRESS=127.0.0.1 | |
env MEM=1024 | |
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 --chdir ${HOME} --pidfile ${HOME}/RUNNING_PID --chuid $USER:$GROUP --exec ${HOME}/bin/${PROJECT} --background --start -- -Dhttp.port=$PORT -Dhttp.address=$ADDRESS -mem ${MEM} -J-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dont know why but it doesnt work! Im currently using 2.5