misc: update systemd service

This commit is contained in:
Yiao Shen 2022-10-06 11:39:04 -04:00
parent 4cefa3264f
commit b418f316af
Signed by: y266shen
GPG Key ID: D126FA196DA0F362
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
[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
User=nobody
DynamicUser=yes
Group=dialout
Restart=always
RestartSec=5