tags 498707 + patch thanks Hi,
The following is the diff for a proposed am-utils 6.1.5-11.1 NMU. It is pending testing, depending on how that goes, I may upload this. I might add that # If amd was running, we don't care about invoke-rc.d's opinion and # restart amd. was discussed on #debian-qa and deemed to be an RC bug. Kind regards T. diff -u am-utils-6.1.5/debian/am-utils.postinst am-utils-6.1.5/debian/am-utils.postinst --- am-utils-6.1.5/debian/am-utils.postinst +++ am-utils-6.1.5/debian/am-utils.postinst @@ -98,7 +98,11 @@ if [ -n "`amq -p 2>/dev/null`" ] then wasrunning=yes - /etc/init.d/am-utils stop + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d am-utils stop + else + /etc/init.d/am-utils stop + fi fi fi @@ -242,10 +246,8 @@ fi ### End autodetect stuck amds... -if [ "$wasrunning" = yes ] || [ ! -x /usr/sbin/invoke-rc.d ] +if [ ! -x /usr/sbin/invoke-rc.d ] then - # If amd was running, we don't care about invoke-rc.d's opinion and - # restart amd. /etc/init.d/am-utils start || : else invoke-rc.d am-utils start || : diff -u am-utils-6.1.5/debian/changelog am-utils-6.1.5/debian/changelog --- am-utils-6.1.5/debian/changelog +++ am-utils-6.1.5/debian/changelog @@ -1,3 +1,10 @@ +am-utils (6.1.5-11.1) unstable; urgency=low + + * Non-maintainer upload. + * Always use invoke-rc.d if present. Closes: #498707 + + -- Thomas Viehmann <[EMAIL PROTECTED]> Fri, 19 Sep 2008 23:05:58 +0200 + am-utils (6.1.5-11) unstable; urgency=low * Added patch to use at most version 4 of the NFS mount struct, pending a -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]