I know shairport isn't part of this project, but I've spent two evenings on this and have to admit I'm not going find the answer without help.
(1) testing from the command line Code: -------------------- [root@wandquad ~]# cat /etc/sysconfig/shairport # OPTIONS="-a Shairport -o ao -- -d alsa -o dev=hw:0" OPTIONS="-p 9002 -a Shairport -o ao -- -d alsa -o dev=default:CARD=imxspdif" # OPTIONS="-a Shairport -o dummy" [root@wandquad ~]# . /etc/sysconfig/shairport [root@wandquad ~]# sudo -u shairport /usr/bin/shairport $OPTIONS Listening for connections. -------------------- All is well, I can play music and avahi-browse -a -r shows the following: Code: -------------------- = eth0 IPv4 2029E6B0BD56@Shairport AirTunes Remote Audio local hostname = [wandquad.local] address = [10.0.1.204] port = [9002] txt = ["pw=false" "txtvers=1" "vn=3" "sr=44100" "ss=16" "ch=2" "cn=0,1" "et=0,1" "ek=1" "sm=false" "tp=UDP"] -------------------- (2) Using systemd Code: -------------------- [root@wandquad ~]# unset OPTIONS [root@wandquad ~]# systemctl enable shairport ln -s '/usr/lib/systemd/system/shairport.service' '/etc/systemd/system/multi-user.target.wants/shairport.service' [root@wandquad ~]# systemctl start shairport [root@wandquad ~]# systemctl status -l shairport shairport.service - Shairport AirTunes receiver Loaded: loaded (/usr/lib/systemd/system/shairport.service; enabled) Active: active (running) since Tue 2014-02-04 07:23:28 PST; 5s ago Main PID: 2948 (shairport) CGroup: /system.slice/shairport.service └─2948 /usr/bin/shairport -p 9002 -a Shairport -o ao -- -d alsa -o dev default:CARD=imxspdif Feb 04 07:23:28 wandquad systemd[1]: Starting Shairport AirTunes receiver... Feb 04 07:23:28 wandquad systemd[1]: Started Shairport AirTunes receiver. -------------------- Looks okay, but the service is continually failing and restarting Code: -------------------- [root@wandquad ~]# tail -10 /var/log/messages Feb 4 07:23:27 wandquad shairport: FATAL: MDNS child process died unexpectedly! Feb 4 07:23:27 wandquad shairport: Listening for connections. Feb 4 07:23:27 wandquad shairport: Shutting down... Feb 4 07:23:27 wandquad systemd: shairport.service: main process exited, code=exited, status=1/FAILURE Feb 4 07:23:27 wandquad systemd: Unit shairport.service entered failed state. Feb 4 07:23:28 wandquad systemd: shairport.service holdoff time over, scheduling restart. Feb 4 07:23:28 wandquad systemd: Stopping Shairport AirTunes receiver... Feb 4 07:23:28 wandquad systemd: Starting Shairport AirTunes receiver... Feb 4 07:23:28 wandquad systemd: Started Shairport AirTunes receiver. Feb 4 07:23:53 wandquad shairport: WARNING: couldn't create avahi client: Daemon not running! -------------------- The claim that the avahi-daemon is not running doesn't seem true, but shairport is failing under systemd due to not being able to advertise itself using MDNS. Code: -------------------- [root@wandquad ~]# systemctl status avahi-daemon.service avahi-daemon.service - Avahi mDNS/DNS-SD Stack Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled) Active: active (running) since Thu 1970-01-01 00:00:10 PST; 44 years 1 months ago Main PID: 385 (avahi-daemon) Status: "Server startup complete. Host name is wandquad.local. Local service cookie is 348406120." CGroup: /system.slice/avahi-daemon.service ├─385 avahi-daemon: running [wandquad.local] └─389 avahi-daemon: chroot helper -------------------- I am mystified as to why running from the command line as user shairport should be any different from running via systemd (also as user shairport). I can get the shairport to stay running under systemd by telling it to use a different MDNS backend (--mdns=tinysvcmdns), but although it advertises itself, I can't get music to play. I really should be able to use the installed and running avahi-daemon. Any help would be appreciated. ---------------------- "Dreamer, easy in the chair that really fits you..." ------------------------------------------------------------------------ dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588 View this thread: http://forums.slimdevices.com/showthread.php?t=99395 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix