Add custom_50x/solar_monitor.service
This commit is contained in:
16
custom_50x/solar_monitor.service
Normal file
16
custom_50x/solar_monitor.service
Normal 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
|
Reference in New Issue
Block a user