> From: Pol Vangheluwe <[email protected]>
> Date: Wed, 3 Aug 2016 15:32:44 +0200
> Subject: [blfs-support] shairport-sync
>
>
>
> 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]
>


Ref below re that 'You???re'  .


> 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???).


Ref below re that '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:
>
> lfs_pol [ ~ ]$ cat /etc/rc.d/init.d/shairport-sync
> #!/bin/sh
> ########################################################################
> # Begin netatalk
> #
> # Description : Shairport-sync Boot Script
> #
> # Authors     : Pol Vangheluwe  - [email protected]
> #               based on the Debian boot script
> #
> # Version     : LFS 7.2
> #
> ########################################################################
>
> ### BEGIN INIT INFO
> # Provides:          shairport-sync
> # Required-Start:    $all
> # Required-Stop:     $remote_fs $syslog
> # Default-Start:     2 3 4 5
> # Default-Stop:      0 1 6
> # Short-Description: Shairport Synchronous AirPlay
> # Description:       Implements a synchronous (multi-room-capable) AirPlay 
> receiver
> # X-LFS-Provided-By:   BLFS / LFS 7.2
> ### END INIT INFO
>
> . /lib/lsb/init-functions
>
> case "${1}" in
>    start)
>       log_info_msg "Starting the Shairport-sync service???"


Looks like maybe an extraneous - non- 7-bit - char in your script,
between the ' service' and the closing '"'  ?


>       start_daemon /usr/local/bin/shairport-sync
>       evaluate_retval
>       ;;
>
>    stop)
>       log_info_msg "Stopping the Shairport-sync service???"


Ditto.

If so, then you'd of course need to edit script in both places.


>       killproc /usr/local/bin/shairport-sync
>       evaluate_retval
>       ;;
>
>    restart)
>       ${0} stop
>       sleep 1
>       ${0} start
>       ;;
>
>    status)
>       statusproc shairport-sync
>       ;;
>
>    *)
>       echo "Usage: ${0} {start|stop|restart|status}"
>       exit 1
>       ;;
> esac
>
> # End /etc/init.d/shairport-sync
>
> I use a very similar boot script for netatalk (find-and-replace???) without 
> any problem.


Cf. above re that 'replace???'  .


>
> pvg
>



rgds,
akh





--
-- 
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