24 lines
658 B
Desktop File
24 lines
658 B
Desktop File
[Unit]
|
|
Description=Turntable ALSA capture → Snapserver FIFO
|
|
Documentation=https://github.com/your/audioserver
|
|
# Start after the Docker stack is up (snapserver creates the FIFO)
|
|
After=network-online.target docker.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/home/admin/appdata/audioserver
|
|
ExecStart=/home/admin/appdata/audioserver/scripts/turntable-capture.sh
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# Read AUDIO_PIPES_DIR and HIFIBERRY_CARD from the project .env
|
|
EnvironmentFile=/home/admin/appdata/audioserver/.env
|
|
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=turntable-capture
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|