teasense/systemd/temperato.service

19 lines
461 B
Desktop File

[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>
Environment=MESSAGE=<your mattermost message>
ExecStart=python3 temperato.py
ExecReload=python3 temperato.py
KillMode=process
Restart=on-failure
Type=simple
WorkingDirectory=<your path>
[Install]
WantedBy=multi-user.target
Alias=temperato.service