Bug#275403: preinst NSS restart does not work with file-rc
At Thu, 07 Oct 2004 23:28:25 +0200,
Christian Hammers wrote:
> libc6.postinst:
> ...
> for service in $services; do
> idl=$(ls /etc/rc${rl}.d/S??${service} 2> /dev/null | head -1)
> echo -n " $service: stopping..."
> ...
>
> This does not work when file-rc is installed which uses
> /etc/runlevel.conf to manage the script to runlevel mapping.
>
> If you can, use invoke-rc.d
Please look at the above line to check filerc issue:
if [ -f /usr/share/file-rc/rc -o -f /usr/lib/file-rc/rc ] && [ -f /etc/runlevel.conf ];
idl=$(filerc $rl $service)
else
idl=$(ls /etc/rc${rl}.d/S??${service} 2> /dev/null | head -1)
fi
If this kind of code is sufficient for you, I put this modification.
Regards,
-- gotom
Reply to: