Am Sa, den 31.07.2004 schrieb Jake McHenry um 6:17:
In my /etc/rc.d/init.d/sendmail file, this is what there was originally
start() {
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 daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac -q $SMQUEUE RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client fi
I added the following line because the sm-client.pid file was being created and it's always empty, so when I shut sendmail down or restart it, it would fail, and I would have to kill manually. I added this right after the daemon sm-client line.
Hm, you then broke something. The daemon line quoted above fills the pid file with the content.
ps waux | grep '^smmsp' | cut -d ' ' -f 5 > /var/run/sm-client.pid
This worked, but could someone show me what your files contain. The way I did it probably isn't the best way to fix this.
$ cat /var/run/sm-client.pid 16419 /usr/sbin/sendmail -L sm-msp-queue -Ac -q 1h
$ cat /var/run/sendmail.pid 16410 /usr/sbin/sendmail -bd -q1h
Jake McHenry
Alexander