1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/roles/sugarizer/templates/sugarizer.service
2020-01-23 05:33:14 -06:00

22 lines
525 B
Desktop File

[Unit]
Description=Node.js Sugarizer Server
# Forces mongodb to start up if not started
Requires=mongodb.service
# Wait for mongodb service to run first
After=mongodb.service
[Service]
WorkingDirectory=/opt/iiab/sugarizer-server/
ExecStart=/usr/bin/node /opt/iiab/sugarizer-server/sugarizer.js
Type=simple
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sugarizer
#User=<alternate user>
#Group=<alternate group>
#Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target