Add systemd unit
This commit is contained in:
parent
3c8942b485
commit
abbdd47c9d
1 changed files with 14 additions and 0 deletions
14
solarmppt.service
Normal file
14
solarmppt.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Daemon for bridging a Serial SRNE MPPT charge controller to MQTT
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
Restart=on-failure
|
||||
StandardOutput=append:/home/pi/z_solar_systemd.log
|
||||
StandardError=append:/home/pi/z_solar_systemd.log
|
||||
WorkingDirectory=/home/pi/
|
||||
Environment=PYTHONPATH=/home/pi/ble/
|
||||
ExecStart=/home/pi/ble-venv/bin/python -m srnemqtt
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue