On 01/12/03 04:32 -0800, Vaibhav Kante wrote:
> Hello,
> 
> We have a Postfix mail server which runs two postfix
> instances (one for incoming and other for outgoing). 
> We have written a script which counts the number of
> processes for postfix running on this server.
> 
> so, in this case we want to make sure that there are 2
> pickup, 2 master and 2 qmgr processes are running. So
> we use:
> proc_num=`ps -ef | grep master | wc -l`
And you might also see the ps process running in the ps output.

> like command for each process and compare this
> $proc_num variable to be equal to 2. Otherwise an
> alert is generated.
You might want to upgrade to a newer Postfix snapshot and get things
going with a single instance. The two instance config is simpler though.

Devdas Bhagat


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to