add systemd files

This commit is contained in:
RLF
2024-01-10 15:35:01 -05:00
parent f0f8a9c596
commit 03aa880066
2 changed files with 32 additions and 0 deletions

View 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

View 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