mailtrain/setup/mailtrain.conf

18 lines
310 B
Text
Raw Normal View History

2016-04-04 12:36:30 +00:00
# upstart script for example server
description "Mailtrain server"
2016-05-13 08:45:18 +00:00
author "Andris Reinman <andris@kreata.ee>"
2016-04-04 12:36:30 +00:00
start on runlevel [2345]
stop on runlevel [!2345]
env NODE_ENV=production
respawn
respawn limit 10 0
script
cd /opt/mailtrain
exec node index.js >> /var/log/mailtrain.log 2>&1
2016-04-04 12:36:30 +00:00
end script