Add custom_50x/solar_monitor.service

This commit is contained in:
smallsolar 2024-12-03 20:08:49 +00:00
parent 3fc3c44a1e
commit de142e2e60
1 changed files with 16 additions and 0 deletions

View File

@ -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