Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
520 B
Desktop File
22 lines
520 B
Desktop File
[Unit]
|
|
Description=Play new SDR voice recordings on the Pi speakers (switched from the radio page, LAN only)
|
|
After=sdr-recordings.service sound.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
DynamicUser=yes
|
|
SupplementaryGroups=audio
|
|
ExecStart=/usr/bin/python3 -I /opt/pi/sdr/speaker/speaker.py
|
|
Restart=always
|
|
RestartSec=5
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
PrivateTmp=yes
|
|
RuntimeDirectory=sdr-speaker
|
|
RuntimeDirectoryMode=0755
|
|
Environment=SPEAKER_NOW=/run/sdr-speaker/now.json
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|