mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
18 lines
601 B
Django/Jinja
18 lines
601 B
Django/Jinja
[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
|