Afficher un message
Vieux 31/10/2006, 09h20   #4
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: "flush queue mode requires no recipient"

manishie@gmail.com writes:

> yes thanks, i've already seen that post, but it didn't .
>
> 1)
> <root>/etc/init.d/sendmail start
> Starting sendmail: [ OK ]
> Starting sm-client: sendmail: fatal: flush queue mode requires no
> recipient
> [FAILED]
> 2)sh -vx /etc/init.d/sendmail start
> #!/bin/bash
> #
> # sendmail This shell script takes care of starting and stopping
> # sendmail.
> #
> [...]
> start() {
> # Start daemons.
> [...]
> if ! test -f /var/run/sm-client.pid ; then
> echo -n $"Starting sm-client: "
> touch /var/run/sm-client.pid
> chown smmsp:smmsp /var/run/sm-client.pid
> if [ -x /usr/bin/selinuxenabled ] && /usr/bin/selinuxenabled; then
> /sbin/restorecon /var/run/sm-client.pid
> fi
> daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
> -q $SMQUEUE $SENDMAIL_OPTARG
> RETVAL=$?
> echo
> [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
> fi
>
> return $RETVAL
> }
> [...]
> + test -f /var/run/sm-client.pid
> + return 0
>
> exit $RETVAL
> + exit 0


In the debug output you posted the script have not even tried to start
sm-sendmail because /var/run/sm-client.pid (file that should contain pid
of running sm-sendmail process) has been present.

Most likely to get more meaningful debug output you should run
/etc/init.d/sendmail stop
before running
sh -vx /etc/init.d/sendmail start

BTW do you use submit.cf generated from Red Hat provided submit.mc?
Red Hat uses "non standard" location of the pid file and non standard
premissions requiring "" from sendmail startup script
(touch ...; chown ... )

It has caused some (different) problems in the past.

--
[pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
  Réponse avec citation
 
Page generated in 0,06027 seconds with 9 queries