example systemd service

Cette révision appartient à :
AJ ONeal 2015-12-30 21:53:38 +00:00
Parent 967a4a99fc
révision 6cc9ec30f7

17
etc/holepunch.service Fichier normal
Voir le fichier

@ -0,0 +1,17 @@
# https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx
# goes in /etc/systemd/system/holepunch.service
# 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