mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
19 lines
598 B
Text
19 lines
598 B
Text
|
[unit]
|
||
|
Description=Node.js Sugarizer Server
|
||
|
Requires=After=mongodb.service # Requires the mongodb service to run first
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory={{ sugarizer_location }}/sugarizer/server/
|
||
|
ExecStart=/usr/bin/node sugarizer.js
|
||
|
Restart=always
|
||
|
RestartSec=10 # Restart service after 10 seconds if node service crashes
|
||
|
StandardOutput=syslog # Output to syslog
|
||
|
StandardError=syslog # Output to syslog
|
||
|
SyslogIdentifier=sugarizer
|
||
|
#User=<alternate user>
|
||
|
#Group=<alternate group>
|
||
|
Environment=NODE_ENV=production
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|