24 lines
635 B
Desktop File
Executable File
24 lines
635 B
Desktop File
Executable File
## 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
|