Add custom_50x/solar_monitor.service
This commit is contained in:
parent
3fc3c44a1e
commit
de142e2e60
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description = Mastodon Control
|
||||||
|
After = network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type = simple
|
||||||
|
Environment="PATH=/root/solar/venv/bin"
|
||||||
|
ExecStart = python3 /root/solar/solar_monitor.py --port /dev/ttyUSB0
|
||||||
|
User = root
|
||||||
|
Group = root
|
||||||
|
Restart = on-failure
|
||||||
|
RestartSec = 5
|
||||||
|
TimeoutStartSec = infinity
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy = multi-user.target
|
Loading…
Reference in New Issue