Add Salimax and battery service file

This commit is contained in:
atef 2023-09-04 10:19:08 +02:00
parent 1ab369bff9
commit 1fa598049d
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=Battery48TL_TCP_Bridge
[Service]
Type=simple
#ExecStart=socat -v -v TCP-LISTEN:6855,nodelay,fork,reuseaddr GOPEN:/dev/ttyUSB0,raw,b115200
#ExecStart=socat -x -d -d TCP-LISTEN:6855,fork,max-children=1 GOPEN:/dev/ttyUSB0,rawer,b115200,cs8,parenb=1,parodd=1
ExecStart=socat -x -d -d TCP-LISTEN:6855 GOPEN:/dev/ttyUSB0,rawer,b115200,cs8,parenb=1,parodd=1
Restart=always
RestartSec=500ms
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=Salimax Controller
Wants=battery.service
[Service]
WorkingDirectory=/home/ie-entwicklung/salimax
ExecStart=/home/ie-entwicklung/salimax/SaliMax
WatchdogSec=30s
Restart=always
RestartSec=500ms
[Install]
WantedBy=multi-user.target