Name, Seitentitel, Dienste (playwish-web, playwish-controller), Dienst-Benutzer (playwish), Pfade (/opt/playwish, /usr/local/src/playwish), Vorlagen und Repository-Adresse. „Audiofy“ war bereits von mehreren Produkten belegt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
873 B
Desktop File
32 lines
873 B
Desktop File
[Unit]
|
||
Description=Playwish – Controller (Spotify-Steuerung, Wünsche vom Server)
|
||
After=network-online.target bluetooth.target raspotify.service
|
||
Wants=network-online.target raspotify.service
|
||
# nie aufgeben, immer wieder neu starten
|
||
StartLimitIntervalSec=0
|
||
|
||
[Service]
|
||
User={{PLAYWISH_USER}}
|
||
Group={{PLAYWISH_USER}}
|
||
WorkingDirectory={{PLAYWISH_DIR}}/app
|
||
ExecStart={{PLAYWISH_DIR}}/.venv/bin/python -u {{PLAYWISH_DIR}}/app/controller.py --env {{PLAYWISH_DIR}}/config/.env
|
||
Restart=always
|
||
RestartSec=5
|
||
UMask=0077
|
||
# Härtung
|
||
NoNewPrivileges=yes
|
||
ProtectSystem=strict
|
||
ProtectHome=yes
|
||
ReadWritePaths={{PLAYWISH_DIR}}/config
|
||
PrivateTmp=yes
|
||
PrivateDevices=yes
|
||
ProtectKernelTunables=yes
|
||
ProtectKernelModules=yes
|
||
ProtectControlGroups=yes
|
||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK AF_BLUETOOTH
|
||
LockPersonality=yes
|
||
MemoryMax=200M
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|