add systemd files
This commit is contained in:
16
uno-stats-monitor/unomond/unomond-user.service
Normal file
16
uno-stats-monitor/unomond/unomond-user.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=UnomonD User Service
|
||||
|
||||
# Notes:
|
||||
# This file can go into /home/<user>/.config/systemd/user
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#User=
|
||||
#Group=
|
||||
ExecStart=%h/bin/unomond -d -c %h/etc/unomond.conf
|
||||
Restart=on-failure
|
||||
#StandardOutput=file:%h/log/unomond.log
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
16
uno-stats-monitor/unomond/unomond.service
Normal file
16
uno-stats-monitor/unomond/unomond.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=UnomonD Service
|
||||
|
||||
# Notes:
|
||||
# The User and/or Group needs access to dialout for the TTY
|
||||
# ExecStart can be changed to /opt or /srv if you prefer
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nobody
|
||||
Group=nobody
|
||||
ExecStart=/usr/local/bin/unomond -d -c /usr/local/etc/unomond.conf
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user