Re: use of "invoke-rc.d $PACKAGE stop || exit $?" in prerm scripts
On Tue, 23 May 2006, Francesco P. Lovergine wrote:
> Unfortunately sometimes the daemon does not stop for an error in the
> maintainer script and that prevents upgrading for ever, even when
> the package has been corrected. BTW, it seems a lack in the policy
> to specify how the maintainers scripts should work on stop (i.e. what
> returning as exit code when stop does not work for secondary reasons)
It is a case-by-case thing, I suppose. If the service cannot be completely
stopped, the initscript *must* return a failure status. If, for your
particular package, that is not critical at all, then yes, you should be
ignoring it.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
Reply to: