Syster Services

This commit is contained in:
Elizabeth Cray committed 2024-04-08 21:22:35 -04:00
1 parent 510f321833
commit d07bd68db4
7 files changed
+89 -311

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=Klipper 3D Printer Firmware - PRINTERNAME
Documentation=https://www.klipper3d.org/
After=network-online.target
Before=moonraker.service
Wants=udev.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=pi
RemainAfterExit=yes
WorkingDirectory=/home/pi/PRINTERNAME/klipper
EnvironmentFile=/home/pi/PRINTERNAME/printer_data/systemd/klipper.env
ExecStart=/home/pi/PRINTERNAME/klippy-env/bin/python $KLIPPER_ARGS
Restart=always
RestartSec=10
+18
View File
@@ -0,0 +1,18 @@
# systemd service file for moonraker
[Unit]
Description=API Server for Klipper - PRINTERNAME
Requires=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=pi
SupplementaryGroups=moonraker-admin
RemainAfterExit=yes
EnvironmentFile=/home/pi/PRINTERNAME/printer_data/systemd/moonraker.env
ExecStart=/home/pi/PRINTERNAME/moonraker-env/bin/python $MOONRAKER_ARGS
Restart=always
RestartSec=10