ggalt wrote:
> I've been fiddling with this for a while, but I can never seem to get
> squeezelite to start as a systemd service on Fedora 20 x86_64. I use a
> stripped down version of the squeezelite service file from Community
> Squeeze. Here is the file:
>
> >
Code:
--------------------
> > [Unit]
> Description=Squeezelite Daemon
>
> Requires=network.target sound.target
> After=network.target sound.target
>
> [Service]
> Type=simple
>
> User=ggalt
> # User=squeezelite
>
> ExecStart=/usr/bin/squeezelite -s 192.168.1.50 -f
/home/ggalt/squeeze.log.txt -a 80 -n Office -v
>
> [Install]
> WantedBy=multi-user.target
>
>
--------------------
> >
>
> I have tried using both the "squeezelite" user created by the RPM and
> myself. As the squeezelite user, the service fails entirely. Setting
> myself as the user ("ggalt"), the service succeeds, but never connects
> to LMS. Output of systemctl status is:
> >
Code:
--------------------
> > squeezelite.service - Squeezelite Daemon
> Loaded: loaded (/usr/lib/systemd/system/squeezelite.service; enabled)
> Active: active (running) since Mon 2014-03-03 10:04:59 EST; 2s ago
> Main PID: 5178 (squeezelite)
> CGroup: /system.slice/squeezelite.service
> ├─5178 /usr/bin/squeezelite -s 192.168.1.50 -f
home/ggalt/squeeze.log.txt -a 80 -n Office -v
> ├─5181 /usr/bin/pulseaudio --start --log-target=syslog
> ├─5183 /usr/bin/pulseaudio --start --log-target=syslog
> └─5184 /usr/bin/pulseaudio --start --log-target=syslog
>
--------------------
> >
>
> However, if I simply issue the same squeezelite command used in the
> squeezelite.service file from the command line (e.g. $
> /usr/bin/squeezelite -s 192.168.1.50 -f /home/ggalt/squeeze.log.txt -a
> 80 -n Office -v), all is well and LMS sees the squeezelite player.
> Does anyone know why the same command would work from the command
> line, but fail from systemd -- especially because the failure is NOT
> that the service isn't running, but that it simply fails to connect to
> the server?
>
> FYI, I've got the same squeezelite.service file running on 2 different
> Arch Linux systems (obviously with different names for the players),
> where it works just fine.
>
> Thanks,
>
> George
Suggest you try with a specific audio device specified with -o, also
does the user which the squeezelite server runs as have permission to
open the audio devices?
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix