Re: sendmail init

2002-09-08 Thread Keith Morse

On Sat, 7 Sep 2002, Ashley M. Kirchner wrote:

> For shutdown I haven't changed anything, and I noticed that the 'killproc 
>sendmail' line will only kill one of the daemons, not both.  Should I just duplicate 
>that line and have it run twice?
> 
> Anyone have any adjustment suggestions for this?


Taking a look at /etc/rc.d/init.d/functions, killproc() calls another 
function pidofproc() which uses "base=${1##*/}" as a pattern match for 
id'ing the pid.  I'd think it would depend on the name of the pid file 
that exists in /var/run/ and if pidofproc() would match it.  pidofproc() 
does try to match and load each pid for each base name above.  It will 
depend upon what "${1##*/}" expands to in the shell, of which I'm not 
sure.  I'm still puzzling thru the "Mastering Regular Expressions" book by 
O'Reilly and Associates.





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



sendmail init

2002-09-07 Thread Ashley M. Kirchner


I'm trying to make the stock RH sendmail init script (/etc/init.d/sendmail) work 
with my modified (and updated) version of sendmail, but I'm having some trouble.  I've 
configured sendmail to work as an MTA and a submit agent, which basically means I run 
two daemons.  However, the script was written for just one, so the startup and 
shutdown sequence is slightly out of whack.

For start up, I've change it to say:


daemon /usr/sbin/sendmail -L sm-mta $([ "$DAEMON" = yes ] && echo -bd) \
$([ -n "$QUEUE" ] && echo -q$QUEUE)

daemon /usr/sbin/sendmail -L sm-msp-queue -Ac -q1m

...however, this pops up two [  OK  ] strings.



For shutdown I haven't changed anything, and I noticed that the 'killproc 
sendmail' line will only kill one of the daemons, not both.  Should I just duplicate 
that line and have it run twice?

Anyone have any adjustment suggestions for this?

--
H | "Life is the art of drawing without an eraser." - John Gardner
  +
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  Director of Internet Operations / SysAdmin. 800.441.3873 x130
  Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave, #6
  http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list