teasense/systemd/temperato.service

18 lines
415 B
SYSTEMD
Raw Normal View History

2021-12-12 01:51:04 +00:00
[Unit]
Description=Temperato Service
[Service]
Environment=NOTIF_URL=<your mattermost incoming webhook>
Environment=CHANNEL_ID=<your mattermost channel id>
Environment=ACCESS_TOKEN=<your mattermost access token>
2021-12-12 01:51:04 +00:00
ExecStart=python3 temperato.py
ExecReload=python3 temperato.py
KillMode=process
Restart=on-failure
2021-12-12 13:03:23 +00:00
Type=simple
2021-12-12 01:51:04 +00:00
WorkingDirectory=<your path>
[Install]
WantedBy=multi-user.target
Alias=temperato.service