it seems i can't stop/start sendmail through the init.d/sendmail script, i need to start it manually:
Code: Select all
#> ps -ef|grep sendmail|grep -v grep
root 19607 1 0 16:58 ? 00:00:00 sendmail: accepting connections
smmsp 19610 1 0 16:58 ? 00:00:00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue
#> /etc/init.d/sendmail stop
* Caching service dependencies ... [ ok ]
* Service sendmail stopping
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] [ !! ]
* ERROR: sendmail failed to stop
#> ps -ef|grep sendmail|grep -v grep
smmsp 19610 1 0 16:58 ? 00:00:00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue
#> kill 19610
#> ps -ef|grep sendmail|grep -v grep
#> /etc/init.d/sendmail start
* WARNING: sendmail has already been started.
Code: Select all
#> cat /etc/init.d/sendmail
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/files/sendmail,v 1.6 2007/09/26 10:46:26 lcars Exp $
depend() {
need net
use logger antivirus
provide mta
}
start() {
ebegin "Starting sendmail"
/usr/bin/newaliases > /dev/null 2>&1
(cd /var/spool/mqueue; rm -f xf*)
/usr/sbin/sendmail ${SENDMAIL_OPTS} > /dev/null 2>&1
/usr/sbin/sendmail ${CLIENTMQUEUE_OPTS} > /dev/null 2>&1
eend $?
}
stop() {
ebegin "Stopping sendmail"
kill ${KILL_OPTS} `head -n 1 /var/run/sendmail.pid`
kill ${KILL_OPTS} `head -n 1 /var/spool/clientmqueue/sm-client.pid`
eend $?
}
Code: Select all
#> source /etc/conf.d/sendmail
#> echo ${SENDMAIL_OPTS}
-bd -q30m -L sm-mta
#> echo ${CLIENTMQUEUE_OPTS}
-Ac -q30m -L sm-cm
#> /usr/sbin/sendmail ${SENDMAIL_OPTS}
#> /usr/sbin/sendmail ${CLIENTMQUEUE_OPTS}
#> ps -ef|grep sendmail|grep -v grep
root 19762 1 0 17:03 ? 00:00:00 sendmail: accepting connections
smmsp 19765 1 0 17:03 ? 00:00:00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue
i use the stable sendmail and baselayout ebuilds :
sys-apps/baselayout-1.12.9-r2
mail-mta/sendmail-8.14.0
am i the only one with this problem?
(found nothing on bugs.gentoo.org)
--
Regards,
Mobidyc


