misc: update systemd service
This commit is contained in:
parent
4cefa3264f
commit
b418f316af
|
@ -1,9 +1,11 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Reporting office status on HTTP
|
Description=Reporting office status on HTTP
|
||||||
|
# To use, clone this repo to /srv/office_status and move this file to /etc/systemd/system
|
||||||
|
# Then start and enable office_status.service with systemctl
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/python3 /srv/office_status/server.py
|
ExecStart=/usr/bin/python3 /srv/office_status/server.py
|
||||||
User=nobody
|
DynamicUser=yes
|
||||||
Group=dialout
|
Group=dialout
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
Loading…
Reference in New Issue