Sendmail Starting

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Sat Jul 31 13:24:16 UTC 2004


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


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.6-1.435.2.3.ad.umlsmp 
Serendipity 15:21:11 up 5 days, 27 users, load average: 0.37, 0.41, 0.32
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040731/22d5c196/attachment-0001.sig>


More information about the fedora-list mailing list