That would be this section:
sendmail-base.prerm:            if [ -x /usr/etc/init.d/sendmail ]; then
sendmail-base.prerm:                    /usr/etc/init.d/sendmail clean;

Since every other call to /etc/init.d/sendmail is guarded by a test for
invoke-rc.d.

The invoke-rc.d manpage says:

INIT SCRIPT ACTIONS
       The  standard  actions  are:   start,   stop,   force-stop,   restart,   
reload,
       force-reload,  and status.  Other actions are accepted, but they can 
cause prob‐
       lems to policy-rc.d (see the INIT SCRIPT POLICY section), so warnings 
are gener‐
       ated if the policy layer is active.
...
       If  an  action  must  be  carried  out regardless of any local policies, 
use the
       --force switch.
...
       --force
              Tries to run the init script regardless of policy and init script 
subsys‐
              tem  errors.  Use of this option in Debian maintainer scripts is 
severely
              discouraged.

So, I'd have to use --force, or suffer the user with a warning due the fact that
I'm passing a non-standard action (clean).

The intent of all this was, that upon removal of sendmail base, it would not 
destroy
anything in the queues, but would clean out stale, or erroneous files.

Sigh, I guess I'll just forgo the idea altogether

--
Rick Nelson
<Iambe> conning the most intellegent people on the planet is not easy

Reply via email to