tags 367727 +patch thanks On 06/05/18 00:21 +0300, Lars Wirzenius said ... > As of Debian Policy Manual version 3.7.2, the use of invoke-rc.d to > run init.d scripts has been made mandatory. Earlier, its use was
Patch attached to fix this. Giridhar -- Y Giridhar Appaji Nag | http://www.appaji.net/
diff -Nur jukebox-mercury-0.1/debian/postinst jukebox-mercury-0.1.new/debian/postinst --- jukebox-mercury-0.1/debian/postinst 2003-12-11 18:44:50.000000000 +0530 +++ jukebox-mercury-0.1.new/debian/postinst 2007-09-12 11:15:55.608400000 +0530 @@ -7,7 +7,11 @@ fi if [ -e /dev/mercury -a -e /dev/mercury-1 -a -e /dev/mercury-2 ]; then - /etc/init.d/$prog start + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d $prog start + else + /etc/init.d/$prog start + fi else echo "This program needs some manual configuration. In /dev create symlinks for the" echo "following targets:" diff -Nur jukebox-mercury-0.1/debian/prerm jukebox-mercury-0.1.new/debian/prerm --- jukebox-mercury-0.1/debian/prerm 2003-12-11 18:44:50.000000000 +0530 +++ jukebox-mercury-0.1.new/debian/prerm 2007-09-12 11:17:26.156969000 +0530 @@ -3,7 +3,11 @@ prog=jukebox-mercury if [ -x /etc/init.d/$prog ]; then - /etc/init.d/$prog stop + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d $prog stop + else + /etc/init.d/$prog stop + fi fi #DEBHELPER#
signature.asc
Description: Digital signature