unable to write pid to sendmail.pid

Denis Beauchemin Denis.Beauchemin at USHERBROOKE.CA
Fri Oct 28 14:43:57 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

No Name wrote:

>MailScanner mailing list <MAILSCANNER at JISCMAIL.AC.UK> schrieb am 28.10.05 09:02:38:
>
>On Mon, 1 Aug 2005 14:16:03 -0700, James D. Parra 
><Jamesp at MUSICREPORTS.COM> wrote:
>
>Sorry, i've attached the wrong file.
>
>See suse-initscript.txt
>
>Felix
>
>Hello,
>
>is a solution for this error available?
>The same error occurs on SUSE Linux 10.0 OSS.
>
>The workaround to add the sendmail-out pid to the sendmail out
>arg in mailscanner init script doesn't work on my system :-(.
>
>The original sendmail start script from suse is attached.
>
>Thank you,
>
>Felix
>
>  
>
>>Hello,
>>
>>Whenever I start MailScanner I get the following error:
>>
>>MailScanner # cat /var/log/mail.err
>>Jul 28 18:21:34  sendmail-out[12986]: unable to write pid to
>>/var/run/sendmail.pid: file in use by another process
>>Jul 29 15:46:35  sendmail-out[5624]: unable to write pid to
>>/var/run/sendmail.pid: file in use by another process
>>Aug  1 11:14:54  sendmail-out[25226]: unable to write pid to
>>/var/run/sendmail.pid: file in use by another process
>>Aug  1 13:12:13  sendmail-out[25885]: unable to write pid to
>>/var/run/sendmail.pid: file in use by another process
>>Aug  1 13:15:43  sendmail-out[26006]: unable to write pid to
>>/var/run/sendmail.pid: file in use by another process
>>Aug  1 13:57:47  sendmail-out[26165]: unable to write pid to
>>/var/run/sendmail.pid: file in use by another process
>>
>>No other application, outside of MailScanner starting sendmail, is 
>>    
>>
>running.
>  
>
>>Can someone point me in the right direction?
>>
>>Thank you,
>>
>>James
>>
>>------------------------ MailScanner list ------------------------
>>To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>>'leave mailscanner' in the body of the email.
>>Before posting, read the Wiki (http://wiki.mailscanner.info/) and
>>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>>
>>Support MailScanner development - buy the book off the website!
>>=========================================================================
>>    
>>
>
>
>------------------------ MailScanner list ------------------------
>To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>'leave mailscanner' in the body of the email.
>Before posting, read the Wiki (http://wiki.mailscanner.info/) and
>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
>Support MailScanner development - buy the book off the website!
>
>
>
>
>------------------------ MailScanner list ------------------------
>To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>'leave mailscanner' in the body of the email.
>Before posting, read the Wiki (http://wiki.mailscanner.info/) and
>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
>Support MailScanner development - buy the book off the website!
>  
>
>------------------------------------------------------------------------
>
>#! /bin/sh
># Copyright (c) 1996-2002 SuSE Gmbh Nuernberg, Germany.
>#
># Author: Florian La Roche, 1996, 1997
>#		   Werner Fink <feedback at suse.de>, 1996, 1999-2002
>#
>### BEGIN INIT INFO
># Provides:       sendmail
># Required-Start: $remote_fs $time
># Required-Stop:
># X-UnitedLinux-Should-Start: amavis ypbind
># X-UnitedLinux-Should-Stop:
># Default-Start:  3 5
># Default-Stop:
># Description:    Start the Sendmail MTA
>### END INIT INFO
>
>test -s /etc/sysconfig/mail && \
>      . /etc/sysconfig/mail
>
>test -s /etc/sysconfig/sendmail && \
>      . /etc/sysconfig/sendmail
>
>if test -z "$SENDMAIL_ARGS" ; then
>		 SENDMAIL_ARGS="-L sendmail -Am -bd -q30m -om"
>fi
>if test -z "$SENDMAIL_CLIENT_ARGS" ; then
>		 SENDMAIL_CLIENT_ARGS="-L sendmail-client -Ac -qp30m"
>fi
>if test "$SMTPD_LISTEN_REMOTE" != "yes" ; then
>		 SENDMAIL_ARGS="-O DaemonPortOptions=Addr=127.0.0.1 $SENDMAIL_ARGS"
>fi
>msppid=/var/spool/clientmqueue/sm-client.pid
>srvpid=/var/run/sendmail.pid
>
>#
># This function polls two seconds on port 25 of localhost
>#
>poll25 ()
>{
>    local timeout=200
>    while ! fuser -sn tcp 25,localhost ; do
>		 test $timeout -eq 0 && return 1
>		 usleep 10000
>		 : $((timeout--))
>    done
>    return 0
>}
>
>. /etc/rc.status
>rc_reset
>case "$1" in
>    start)
>		 echo -n "Initializing SMTP port (sendmail)"
>		 startproc -p $srvpid -i $msppid /usr/sbin/sendmail $SENDMAIL_ARGS
>		 rc_status
>		 poll25
>		 rc_status
>		 startproc -p $msppid -i $srvpid /usr/sbin/sendmail $SENDMAIL_CLIENT_ARGS
>		 rc_status -v
>		 ;;
>    stop)
>		 echo -n "Shutting down SMTP port"
>		 killproc  -p $msppid -i $srvpid -TERM /usr/sbin/sendmail
>		 rc_status
>		 killproc  -p $srvpid -i $msppid -TERM /usr/sbin/sendmail
>		 rc_status -v
>		 ;;
>    try-restart)
>		 $0 stop && $0 start
>		 rc_status
>		 ;;
>    restart)
>		 $0 stop
>		 $0 start
>		 rc_status
>		 ;;
>    reload|force-reload)
>		 echo -n "Reload service sendmail"
>		 killproc  -p $msppid -i $srvpid -TERM /usr/sbin/sendmail
>		 rc_status
>		 startproc -p $msppid -i $srvpid /usr/sbin/sendmail $SENDMAIL_CLIENT_ARGS
>		 rc_status
>		 killproc  -p $srvpid -i $msppid -HUP  /usr/sbin/sendmail
>		 rc_status -v
>		 ;;
>    status)
>		 echo -n "Checking for service sendmail: "
>		 checkproc -p $srvpid -i $msppid /usr/sbin/sendmail
>		 rc_status
>		 checkproc -p $msppid -i $srvpid /usr/sbin/sendmail
>		 rc_status -v
>		 ;;
>    probe)
>		 todo=""
>		 test /etc/sendmail.cf    -nt $srvpid && todo=reload
>		 test /etc/mail/submit.cf -nt $msppid && todo=reload
>		 checkproc -p $srvpid -i $msppid /usr/sbin/sendmail || todo=restart
>		 checkproc -p $msppid -i $srvpid /usr/sbin/sendmail || todo=restart
>		 test -z "$todo" || echo "$todo"
>		 ;;
>    *)
>		 echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
>		 exit 1
>esac
>rc_exit
>
>  
>
Felix,

I don't know much about Suse but the init script you included is 
sendmail's.  Sendmail should not be started on its own (at least not on 
RedHat).

On RedHat, MailScanner starts both sendmail and MailScanner.  I think it 
should be the same for Suse...

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x2252 F: 819.821.8045

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list