Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 599 Bytes
#!upstart
description "DigiBird api node.js server"
author "Chris Dijkshoorn"
# Wait a bit longer after startup so discs are mounted
start on started mountall
stop on shutdown
# Automatically respawn
respawn
respawn limit 99 5
script
# 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-api.log
end script
pre-stop script
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] Stopping" >> /var/log/digibird-api.log
end script
You can’t perform that action at this time.