add example systemd service
This commit is contained in:
parent
b73d8a010c
commit
0d9b5122b8
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Ethical Viewcounter Service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/var/viewcounter
|
||||
ExecStart=/opt/node-v16.15.0-linux-x64/bin/node /var/viewcounter/.
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=viewcounter
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue