Re: WARNING: invoke-rc.d called during shutdown sequence
On Sat, Jun 27, 2009 at 7:16 PM, Robert S
<robert.spam.me.senseless@gmail.com> wrote:
>
> I get the above error message whenever I use invoke-rc.d. This isn't a major problem except that I get annoying messages every night when logrotate restarts services. Is there a fix for this?
>
> # invoke-rc.d samba restart
> invoke-rc.d: ----------------------------------------------------
> invoke-rc.d: WARNING: invoke-rc.d called during shutdown sequence
> invoke-rc.d: enabling safe mode: initscript policy layer disabled
> invoke-rc.d: ----------------------------------------------------
The relevant portions of /usr/sbin/invoke-rc.d are here:
RUNLEVEL=/sbin/runlevel
RL=`${RUNLEVEL} | sed 's/.*\ //'`
## Handles shutdown sequences VERY safely
## i.e.: forget about policy, and do all we can to run the script.
## BTW, why the heck are we being run in a shutdown runlevel?!
if test x${RL} = x0 || test x${RL} = x6 ; then
FORCE=yes
RETRY=yes
POLICYHELPER=
BEQUIET=
printerror ----------------------------------------------------
printerror WARNING: invoke-rc.d called during shutdown sequence
printerror enabling safe mode: initscript policy layer disabled
printerror ----------------------------------------------------
fi
So I suppose the first question is, what's the output of
/sbin/runlevel on your system?
--
Chris
Reply to: