Files
kiauh/resources/moonraker.service
th33xitus b96dbd7a06 refactor(moonraker.sh): full rewrite
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:58 +02:00

20 lines
470 B
Desktop File

#Systemd Moonraker Service
[Unit]
Description=Starts Moonraker %INST% on startup
Documentation=https://moonraker.readthedocs.io/
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
Environment=MOONRAKER_CONF=%CFG%
Environment=MOONRAKER_LOG=%LOG%
Type=simple
SupplementaryGroups=moonraker-admin
User=%USER%
RemainAfterExit=yes
ExecStart=%ENV%/bin/python %DIR%/moonraker/moonraker.py -c ${MOONRAKER_CONF} -l ${MOONRAKER_LOG}
Restart=always
RestartSec=10