16 lines
366 B
SYSTEMD
16 lines
366 B
SYSTEMD
[Unit]
|
|
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]
|
|
ExecStart=/usr/bin/python3 /srv/office_status/server.py
|
|
DynamicUser=yes
|
|
Group=dialout
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|