From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728411673.tru64-unix-managers.marc@archive.invalid> From: "Irene A. Shilikhina" Date: Wed, 04 Nov 1998 11:44:27 +0000 To: tru64-unix-managers Subject: Some details of startup/stop/restart script for sendmail(8.9.1) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728411673 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. * * * * * *************************************************************************