Fix service deployment

This commit is contained in:
Odd Stråbø 2024-01-03 11:28:33 +01:00
commit 1890036b6c
3 changed files with 6 additions and 3 deletions

View file

@ -4,8 +4,8 @@ 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
#StandardOutput=append:/home/pi/z_solar_systemd.log
#StandardError=append:/home/pi/z_solar_systemd_err.log
WorkingDirectory=/home/pi/
Environment=PYTHONPATH=/home/pi/ble/
ExecStart=/home/pi/ble-venv/bin/python -m srnemqtt