Kommunikation hat funktioniert
This commit is contained in:
23
scripts/CanRtDriver.service
Executable file
23
scripts/CanRtDriver.service
Executable file
@@ -0,0 +1,23 @@
|
||||
## Service Definition
|
||||
## Datei gehört in /etc/systemd/system
|
||||
## aktivieren dann mit:
|
||||
## - sudo systemctl daemon-reload
|
||||
## - sudo systemctl enable CanRtDriver.service
|
||||
## - sudo systemctl start CanRtDriver.service
|
||||
|
||||
[Unit]
|
||||
Description=CAN-Bus Treiber für Gegenstromanlage
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/veltmann/Documents/CanRtDriver/bin/CanRtDriver
|
||||
# Oder: ExecStart=/usr/bin/python3 /home/pi/meinprogramm.py
|
||||
WorkingDirectory=/home/veltmann/Documents/CanRtDriver/bin
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
Restart=always
|
||||
#User=veltmann
|
||||
# Optional: Group=meinbenutzergruppe
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user