tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Some details of startup/stop/restart script for sendmail(8.9.1)
@ 1998-11-04 11:44 Irene A. Shilikhina
  0 siblings, 0 replies; only message in thread
From: Irene A. Shilikhina @ 1998-11-04 11:44 UTC (permalink / raw)
  To: tru64-unix-managers


Hello managers,

I'm not satisfied with my sendamail script in /sbin/init.d . Though in the
documentation on sendmail 8.9.1 there is a sketch of a startup script it 
doesn't include those parts which stop and restart the sendmail daemon.
At the same time, I've noticed some inadequacy in the concerned parts of 
the old sendmail script.

The matter is that when having run "S40sendmail stop" the script prints
the message "No pid for SMTP Mail Service found". Indeed, the script searches
a process with a "command" field containing the word "connection" whereas
ps command for this process gives only "sendmail: accepting connectio". (It 
seems that the string which argv[0] points to one character shorter than 
expected). I wouldn't like simply to delete one character from the command 
line in the script. I think startup script should be less dependent on a 
currently used version of sendmail program (actually, I don't remember 
whether this command line worked correctly with 5.65 version).
In general, I wonder why it doesn't use a way of saving the Pid when calling 
the program as other scripts do. Is there something preventing from that 
in this case?

If someone has got a script proved to be rather good for 8.9.1 could you
please share it?

Thanks,
Irene

P.S. About a circumstance when I had to restart sendmail daemon: because of
problems with a communication channel I had to do it for moving the queue 
to a temporary place because it had become enormous.
*************************************************************************
*                                                                       *
*   Irene A. Shilikhina                 e-mail: irene@alpha.iae.nsk.su  *
*   System administrator,                                               *
*   Institute of Automation & Electrometry,                             *
*   Siberian Branch of Russian Academy of Sciences,                     *
*   Novosibirsk, Russia                                                 *
*                      http://www.iae.nsk.su/~irene                     *
*************************************************************************
*                                   *                                   *
*   Good intentions pave a path to  *  Every cloud has a silver lining. *
*   the hell.                       *                                   *
*                                   *                                   *
*************************************************************************

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-04 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-04 11:44 Some details of startup/stop/restart script for sendmail(8.9.1) Irene A. Shilikhina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox