16 lines
324 B
SYSTEMD
16 lines
324 B
SYSTEMD
[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 |