Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Updated upstart script.
  • Loading branch information
rasvaan committed Aug 24, 2016
1 parent 75e8b77 commit a25a1728675cd9dbf06cb03b059049ebb49256ed
Showing with 6 additions and 6 deletions.
  1. +6 −6 digibird.conf → digibird-api.conf
@@ -1,5 +1,5 @@
description "node.js server"
description "DigiBird api node.js server"
author "Chris Dijkshoorn"

# Wait a bit longer after startup so discs are mounted
@@ -11,15 +11,15 @@ respawn
respawn limit 99 5

chdir /home/digibird/local/digibird/server

exec sudo -u www-data /usr/bin/node /home/digibird/local/digibird/server/src >> /var/log/digibird.log 2>&1
# Start api
chdir /home/digibird/local/digibird/api
exec /usr/bin/npm run start-prod >> /var/log/digibird-api.log 2>&1
end script

pre-start script
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] Starting" >> /var/log/digibird.log
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] Starting" >> /var/log/digibird-api.log
end script

pre-stop script
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] Stopping" >> /var/log/digibird.log
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] Stopping" >> /var/log/digibird-api.log
end script

0 comments on commit a25a172

Please sign in to comment.