mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
service unit
This commit is contained in:
parent
fcc02da845
commit
f8aed654b9
2 changed files with 12 additions and 1 deletions
|
|
@ -14,4 +14,5 @@
|
|||
## Running
|
||||
|
||||
* `prettyprint.py` -- check and print all sensors
|
||||
* TODO -- launch service
|
||||
* `service.py` -- launch service
|
||||
* `lego-monitoring.service` is a systemd unit that starts `service.py`
|
||||
|
|
|
|||
10
lego-monitoring.service
Normal file
10
lego-monitoring.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/lego-monitoring/.venv/bin/python /opt/lego-monitoring/service.py
|
||||
Type=exec
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue