17 lines
318 B
Text
17 lines
318 B
Text
# upstart script for example server
|
|
|
|
description "Mailtrain server"
|
|
author "Andris Reinman <andris.reinman@gmail.com>"
|
|
|
|
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
|
|
end script
|