Issues running RPiPlay as a service
balonchiks opened this issue · 1 comments
Hi, thanks for the great piece of software! Everything (almost!) works like a charm. The only thing i can't figure out is this:
I have to run rpiplay like this to be able to use the gstreamer
audio renderer, and it works fine (there's no audio at all if i run it without the gstreamer
):
/home/pi/RPiPlay/build/rpiplay -ar gstreamer
so bearing this in mind i created a service script in /etc/systemd/system/rpiplay.service
with the following content:
[Unit]
Description=RPi Play
After=network.target
StartLimitIntervalSec=30
[Service]
Type=simple
Restart=always
RestartSec=10
User=pi
ExecStart=/home/pi/RPiPlay/build/rpiplay -ar gstreamer
StandardOutput=inherit
StandardError=journal
[Install]
WantedBy=multi-user.target
...and audio does not work. it seems that the -ar gstreamer
is not picking up and the rpiplay starts with the default audio renderer.
Is there something i am doing wrong, or there's an issue in my /etc/systemd/system/rpiplay.service
that i am missing?
Thanks!
figured out it should just not be run with a sudo
to function properly