32 lines
627 B
Desktop File
32 lines
627 B
Desktop File
[Unit]
|
|
Description=PylonisAmp
|
|
After=network-online.target bluetooth.target sound.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=tom
|
|
Group=tom
|
|
WorkingDirectory=/home/tom/streamer
|
|
ExecStart=/usr/bin/python3 /home/tom/streamer/app.py
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=streamer
|
|
|
|
# Audio
|
|
SupplementaryGroups=audio bluetooth gpio
|
|
|
|
# Środowisko
|
|
Environment=PYTHONUNBUFFERED=1
|
|
Environment=ALSA_DEVICE=hw:sndrpihifiberry,0
|
|
Environment=WEB_PORT=8000
|
|
|
|
# Pico USB CDC
|
|
DeviceAllow=/dev/ttyACM0 rw
|
|
DeviceAllow=/dev/ttyACM1 rw
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|