add user and group to systemd service example

This commit is contained in:
Nils 2022-08-23 03:31:56 +02:00
parent deab05167d
commit 5c8a39ad75
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

View File

@ -8,6 +8,8 @@ StartLimitBurst=5
StartLimitIntervalSec=20 StartLimitIntervalSec=20
[Service] [Service]
User=1000
Group=1000
Restart=always Restart=always
RestartSec=1 RestartSec=1
ExecStart=/bin/probehost2 --logfilepath "/var/log/probehost2.log" --port 8000 ExecStart=/bin/probehost2 --logfilepath "/var/log/probehost2.log" --port 8000