🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3546

Re: logging sendmail with syslogd

#3546
From: Brad Knowles
Date: Fri, 16 Feb 1996 00:00
34 lines
2465 bytes
In article <62v6T2voo$B@rimki.toppoint.de>, chrimek@toppoint.de wrote:

> I don't know how Linux handles this, but my sendmail 8.6.12 on a
> NetBSD 1.1 machine has a two-lines file /var/run/sendmail.pid.
> The first line holds the proces ID, the second one repaets the
> command line used to invoke sendmail.

    This file can get out of sync with the real sendmail daemon.  I wrote
a stupid little shell script to check that file (if it exists) and try to
do things the right way, but to also detect which sendmail process was the
parent daemon and do the right thing there in case they got out of sync.

    It's nowhere near perfect, and I don't know if I'll ever feel inclined
to inflict it upon the sendmail community at large, but it shouldn't be
that hard to write your own program that does something similar and is
probably better than mine.


    Fortunately, if you started sendmail 8.7.y up correctly (with a full
path, as opposed to "cd directory ./sendmail -bd" or somesuch), then a
kill -HUP should do the right thing.

-- 
Brad Knowles,                                       MIME: brad@his.com
    comp.mail.sendmail FAQ Maintainer      <http://www.his.com/~brad/>

The comp.mail.sendmail FAQ is at <http://www.his.com/~brad/sendmail/>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d+>--- s:(++) a-() C++(+++)$ UHI*++++$ P+>+++ !L !E(--) W--(+)@
N+(++) o? K? !w(---) M++ V PS+ PE-(+)@ Y+(++)@ PGP+(++) t+(+++)@
5+(++) X+(+++)@ R++(+++)@ tv-()@ b+@ DI++(+++) !D(----) G e++>+++ h+
------END GEEK CODE BLOCK------
Technical Details
Message-ID: <brad-1602961420140001@brad.his.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4f8seo$oe0@ngriffin.itc.gu.edu.au> <4fb440$k0o@isg.hboc.com> <62v6T2voo$B@rimki.toppoint.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,94a1fef176403b9b
X-Google-Attributes: gid10c696,public
X-Google-Thread: 10669a,94a1fef176403b9b
X-Google-Attributes: gid10669a,public
X-Google-Thread: f9b51,94a1fef176403b9b
X-Google-Attributes: gidf9b51,public
X-Google-Thread: 102983,94a1fef176403b9b
X-Google-Attributes: gid102983,public
X-Google-Thread: 10de99,94a1fef176403b9b
X-Google-Attributes: gid10de99,public
From: brad@his.com (Brad Knowles)
Subject: Re: logging sendmail with syslogd
Date: 1996/02/16
Message-ID: <brad-1602961420140001@brad.his.com>
X-Deja-AN: 139645261
references: <4f8seo$oe0@ngriffin.itc.gu.edu.au> <4fb440$k0o@isg.hboc.com> <62v6T2voo$B@rimki.toppoint.de>
organization: Heller Information Services, Inc.
newsgroups: comp.mail.sendmail,comp.os.linux.development.apps,aus.computers.linux,comp.os.linux.networking,comp.os.linux.setup