add example systemd service

This commit is contained in:
sophie 2022-09-18 00:59:00 +01:00
parent b73d8a010c
commit 0d9b5122b8
1 changed files with 16 additions and 0 deletions

16
viewcounter.service Normal file
View File

@ -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