script: rework moonraker service setup

This commit is contained in:
th33xitus
2021-03-28 15:51:50 +02:00
parent d658c3a4cd
commit 2f9de620bc
4 changed files with 192 additions and 290 deletions

View File

@@ -0,0 +1,15 @@
#Systemd service file for moonraker
[Unit]
Description=Starts Moonraker %INST% on startup
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=%USER%
RemainAfterExit=yes
ExecStart=%MR_ENV%/bin/python %MR_DIR%/moonraker/moonraker.py -l %MR_LOG% -c %MR_CONF%
Restart=always
RestartSec=10