Skip to content

Instantly share code, notes, and snippets.

@lackac
Created September 23, 2012 09:54
Show Gist options
  • Save lackac/3769546 to your computer and use it in GitHub Desktop.
Save lackac/3769546 to your computer and use it in GitHub Desktop.
Upstart configuration for Bibliaolvasó
# 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