Closed seho85 closed 2 years ago
hi,
it could be like this. Tested check
[Unit]
Description=dgus display service
Requires=network.target moonraker.service
#Wants=network.target klipper.service moonraker.service
After=network.target moonraker.service klipper.service
[Service]
Type=oneshot
User=pi
RemainAfterExit=yes
ExecStartPre=/usr/bin/sleep 15
ExecStart=/home/pi/klipper-dgus/src/start.sh
ExecStop=/home/pi/klipper-dgus/src/stop.sh
[Install]
WantedBy=multi-user.target
A service "template" has been added with commit db4b81e1391b38c2b997894ef3add6a96d698959
Just replace:
Currently the python application needed to be started manually, this is pretty unusable for productive usage.
A systemd service file that allows automatic starting and stopping of the display application.