holepunch.js/etc/holepunch.service

18 lines
491 B
SYSTEMD
Raw Permalink Normal View History

2015-12-30 21:53:38 +00:00
# https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx
2015-12-31 05:43:12 +00:00
# goes in /etc/systemd/system/multi-user.target.wants/holepunch.service
2015-12-30 21:53:38 +00:00
# systemctl enable holepunch
# systemctl start holepunch
[Service]
ExecStart=/usr/local/bin/node /srv/holepunch/bin/service.js
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=node-holepunch
User=root
Group=root
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target