2017-05-27 18:09:50 +00:00
|
|
|
[unit]
|
|
|
|
Description=Node.js Sugarizer Server
|
2017-10-19 05:28:27 +00:00
|
|
|
# Requires=After=mongodb.service # Requires the mongodb service to run first
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
[Service]
|
2018-05-22 01:11:15 +00:00
|
|
|
WorkingDirectory={{ sugarizer_location }}/sugarizer-server/
|
|
|
|
ExecStart=start-sugarizer.sh
|
2017-05-27 18:09:50 +00:00
|
|
|
Restart=always
|
2017-09-22 16:31:11 +00:00
|
|
|
#RestartSec=10 # Restart service after 10 seconds if node service crashes
|
2018-05-22 01:11:15 +00:00
|
|
|
#StandardOutput=syslog # Output to syslog
|
|
|
|
#StandardError=syslog # Output to syslog
|
|
|
|
#SyslogIdentifier=sugarizer
|
2017-05-27 18:09:50 +00:00
|
|
|
#User=<alternate user>
|
|
|
|
#Group=<alternate group>
|
2018-05-22 01:11:15 +00:00
|
|
|
#Environment=NODE_ENV=production
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|