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
|
2016-06-03 10:15:33 +00:00
|
|
|
exec node index.js >> /var/log/mailtrain.log 2>&1
|
2016-04-04 12:36:30 +00:00
|
|
|
end script
|