Files
kiauh/resources/moonraker.service
th33xitus 510acf0fa6 refactor(moonraker.sh): better conditions
- reword service description
- reword ok messages

Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:52 +02:00

20 lines
491 B
Desktop File

#Systemd Moonraker Service
[Unit]
Description=Systemd Moonraker Service for instance moonraker-%INST%
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