Created
September 23, 2012 09:54
-
-
Save lackac/3769546 to your computer and use it in GitHub Desktop.
Upstart configuration for Bibliaolvasó
This file contains hidden or 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
# Generated by Chef | |
description "Bibliaolvaso" | |
author "Laszlo Bacsi" | |
start on startup | |
stop on shutdown | |
respawn | |
respawn limit 15 5 | |
setuid bibliaolvaso | |
setgid bibliaolvaso | |
chdir /srv/bibliaolvaso/current | |
script | |
. /etc/default/bibliaolvaso | |
node server.js | |
end script | |
pre-start script | |
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Starting" | |
end script | |
pre-stop script | |
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Stopping" | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment