ansible/roles/klipper/templates/klipper.service.j2

16 lines
413 B
Plaintext
Raw Normal View History

#Systemd service file for klipper
[Unit]
Description=Starts klipper on startup
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User= {{ klipper_user }}
RemainAfterExit=yes
ExecStart={{ klipper_dir }}/venv/bin/python {{ klipper_dir }}/klippy/klippy.py {{ klipper_conf_dir }}/printer.cfg -l /tmp/klippy.log -a /tmp/klipper_uds -I /home/klipper/printer
Restart=always
RestartSec=10