example systemd service
Cette révision appartient à :
Parent
967a4a99fc
révision
6cc9ec30f7
17
etc/holepunch.service
Fichier normal
17
etc/holepunch.service
Fichier normal
@ -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
|
||||
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur