Is it possible to run Shairport properly on OMV?
I have managed to get Shairport working, but the Service only starts on the command: "sudo /etc/init.d/shairport status"
It doesn't start when booting the System. Any suggestions?
Is it possible to run Shairport properly on OMV?
I have managed to get Shairport working, but the Service only starts on the command: "sudo /etc/init.d/shairport status"
It doesn't start when booting the System. Any suggestions?
Did you try:
sudo update-rc.d shairport default
That should make it start when booting.
It didn't work. Thats the output:
root@Server:~# /etc/init.d/shairport start
Starting shairport: .
root@Server:~# sudo update-rc.d shairport default
update-rc.d: using dependency based boot sequencing
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
root@Server:~#
Why did you do this? /etc/init.d/shairport start
Before you did this? update-rc.d shairport default
Did you try after the update-rc.d command?
service shairport start
I forgot an 's' on default. Should be:
update-rc.d shairport defaults
By the way... if you are logged in as root, you don't need sudo.
lawl, me as well. :lol: :lol: :lol:
Just get the same output:
root@Server:~# sudo update-rc.d shairport default
update-rc.d: using dependency based boot sequencing
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
root@Server:~#
The second command works, but no start of shairport on booting:
root@Server:~# service shairport start
Starting shairport: .
root@Server:~#
Output with the missing 'S' :
root@Server:/# update-rc.d shairport defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: current stop runlevel(s) (0) of script `shairport' overwrites defaults (0 1 6).
root@Server:/#
Still no start on booting.
Not that I want to debug the shairport init script (this is not an omv issue) but what is output of:
cat /etc/init.d/shairport
Cheers for your help mate!
root@Server:/# cat /etc/init.d/shairport
#!/bin/bash
#
# This starts and stops shairport
#
### BEGIN INIT INFO
# Provides: shairport
# Required-Start: $network
# Required-Stop:
# Short-Description: shairport - Airtunes emulator!
# Description: Airtunes emulator!
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
modprobe snd-hda-intel
# Source function library.
. /lib/lsb/init-functions
NAME=Denon
DAEMON="/usr/local/bin/shairport.pl"
PIDFILE=/var/run/$NAME.pid
DAEMON_ARGS="-w $PIDFILE -a $NAME"
[ -x $binary ] || exit 0
RETVAL=0
start() {
echo -n "Starting shairport: "
start-stop-daemon --start --quiet --pidfile "$PIDFILE" \
--exec "$DAEMON" -b --oknodo -- $DAEMON_ARGS
log_end_msg $?
}
stop() {
echo -n "Shutting down shairport: "
start-stop-daemon --stop --quiet --pidfile "$PIDFILE" \
--retry 1 --oknodo
log_end_msg $?
}
restart() {
stop
sleep 1
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status shairport
;;
restart)
restart
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
;;
esac
exit 0
root@Server:/#
Alles anzeigen
Not knowing anything about shairport, the init script waits for the network to start but must need something else started (syslog? local filesystem?) before it works. That is why it works when you /etc/init.d/shareport start but not at boot.
Try changing the following as root:
nano /etc/init.d/shairport
change line
# Required-Start: $network
to
# Required-Start: $all
ctrl-o to save
ctrl-x to exit
You made my day. It's working. Thank you very much!
Good to hear
There will be an official plugin for shairport in kralizec. FYI
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!