Add a systemd user service and installer for the stage simulator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-22 13:29:23 +13:00
1 parent 20f018a523
commit df05c8ca49
3 files changed
+85

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Stage simulator (python -m simulator) as a systemd user service.
# install.sh fills in @ROOT@, @PYTHON@ and @ARGS@ and copies it to
# ~/.config/systemd/user/.
[Unit]
Description=Stage simulator (Art-Net on 6454, view on http://127.0.0.1:8765)
After=network.target
[Service]
Type=simple
WorkingDirectory=@ROOT@
ExecStart=@PYTHON@ -m simulator @ARGS@
Environment=PYTHONUNBUFFERED=1
# The simulator shuts its server and Art-Net socket down on Ctrl+C.
KillSignal=SIGINT
Restart=on-failure
RestartSec=3
[Install]
WantedBy=default.target