Add systemd unit

This commit is contained in:
Odd Stråbø 2023-12-08 14:33:08 +01:00
parent 3c8942b485
commit abbdd47c9d
1 changed files with 14 additions and 0 deletions

14
solarmppt.service Normal file
View 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