Package: masqmail
Version: 0.2.21-1.2

During system shutdown, I get a warning (that I can't trap, because the
screen goes blank a second after I see it) something like "Masqmail:
invoke-rc.d called during shutdown - ignoring."

This is caused by line 73 in /etc/init.d/masqmail:

update-inetd --enable smtp

I guess update-inetd calls invoke-rc.d, which refuses to run, because it
is called during the shutdown sequence.  I don't know what Debian policy
is, but there are two things I don't like about this.

First, I don't want masqmail to mess with /etc/inetd.conf at all.  I
have no services enabled in it and I want it to stay that way.  For
example, you could define an environmental variable, MANAGE_INETD, that
users could set to false in /etc/default/masqmail.

Second, I shouldn't be getting warnings in normal operation.  I agree
that invoke-rc.d shouldn't be called during shutdown.  But we shouldn't
rely on secondary safety features, when it can be done right in the
primary script.  You should test if this is a shutdown or just shutting
off the service, before calling update-inetd.

/etc/default/masqmail

#
# better use 'dpkg-reconfigure masqmail'
# instead of editing by hand
#
INIT_SMTP_DAEMON="false"
INIT_QUEUE_DAEMON="true"
INIT_FETCH_DAEMON="false"
#
QUEUE_DAEMON_IVAL="-q30m"
FETCH_DAEMON_IVAL="-go5m"
#
IPUP_RUNQUEUE="false"
IPUP_FETCH="false"
IFUP_IFACES="eth0

/etc/masqmail/masqmail.conf

### BEGIN DEBCONF SECTION
# Do not edit within this region if you want your changes to be preserved by
# debconf.  Instead, make changes after the "### END DEBCONF SECTION" line.
host_name="xxxx.localnet.prv"
local_hosts="localhost;xxxx;xxxx.localnet.prv"
local_nets="*.localnet.prv"
listen_addresses="localhost:25"
spool_dir="/var/spool/masqmail"
mail_dir="/var/mail"
log_dir="/var/log/masqmail"
do_queue=false
use_syslog=true
online_detect=file
online_file="/tmp/connect_route"
mbox_default=mda
mda="/usr/bin/procmail -Y -d ${rcpt_local}"
alias_file=/etc/aliases
alias_local_caseless="false"
### END DEBCONF SECTION
#
# include the locations of your route and get configurations here.
# Examples:
# online_routes.default = "/etc/masqmail/default.route"
# online_gets.default = "/etc/masqmail/default.get"
# You can have more of those, with '.default' replaced with other
# names. See man 8 masqmail.conf.
#
online_routes.xxx = "/etc/masqmail/xxx.route"




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to