Pol Vangheluwe wrote:
I just finished building shairport-sync on my iMac-G3 (LFS 7.2) and PowerMac G4 
(LFS 7.7).

[I know, this is old stuff.  You’re simply going too fast for me and my old 
Apple computers]

I applied the procedures as described on 
https://github.com/mikebrady/shairport-sync
The only missing dependency (not in BLFS) is libconfig, that I found on 
http://www.hyperrealm.com/libconfig/ <http://www.hyperrealm.com/libconfig/>.

The G4 is using systemd, so it was easy to advertise it as a new service at 
startup (sorry Bruce…).
The G3 is using system V, so I had to create a boot script for it.  My script 
seems to work, but I find this in boot.log:

Aug 03 14:51:20 +02:00 iMac400  Starting the Shairport-sync service…Aug 03 
14:58:29 +02:00 iMac400   FAIL
Aug 03 14:58:29 +02:00 iMac400  FAILURE:

You should not be reading this error message.

It means that an unforeseen error took place in
/etc/rc.d/rc3.d/S90shairport-sync,
which exited with a return value of 143.
If you're able to track this error down to a bug in one of
the files provided by the files provided by
the LFS book, please be so kind to inform us at
[email protected] (Registration required).
  FAIL
Aug 03 14:58:29 +02:00 iMac400  Press Enter to continue...--------

The boot process stops and I get no prompt.  I can however logon with SSH and 
find 2 processes (instead of one):

root      2798  2233  0 14:51 ?        00:00:00 /bin/sh 
/etc/rc.d/rc3.d/S90shairport-sync start
root      2818  2798 10 14:51 ?        00:00:15 /usr/local/bin/shairport-sync

The computer returns to a normal status when I kill 2798.

I have a similar problem when I manually start the service:
no prompt anymore, but shairport-sync is running until I press <CTRL>-C.
This is my boot script:

    start)
       log_info_msg "Starting the Shairport-sync service…"
       start_daemon /usr/local/bin/shairport-sync
       evaluate_retval

The script looks OK although I know nothing about shairport-sync. What is happening is that shairport-sync is reporting a problem. The start_daemon is really only running /usr/local/bin/shairport-sync and that is returning a non-zero value.

Note that evaluate_retval() only logs a message,

It's easy enough to debug the script. Just remove the symlink from /etc/rc.d/rc{3,5}.d and run '/etc/init.d/shairport-sync start' from the command line (as root),


  -- Bruce



--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to