On Tue, Mar 21, 2006, Bernhard Reiter wrote: > [...] > Thus I am suggesting the following patch (only minimally tested).
> --- rc.postfix.org 2006-03-21 08:41:50.775905000 +0100 > +++ rc.postfix 2006-03-21 08:40:27.519905000 +0100 > @@ -19,7 +19,9 @@ > postfix_usable="no" > postfix_active="no" > /kolab/sbin/postfix check >/dev/null 2>&1 && postfix_usable="yes" > - /kolab/libexec/postfix/master -t >/dev/null 2>&1 || postfix_active="yes" > + { ! ps -elf|grep postfix/m[a]ster >/dev/null 2>&1 && \ > + /kolab/libexec/postfix/master -t >/dev/null 2>&1 ; } || \ > + postfix_active="yes" > echo "postfix_enable=\"$postfix_enable\"" > echo "postfix_usable=\"$postfix_usable\"" > echo "postfix_active=\"$postfix_active\"" "ps -elf" is not portable enough. Better would be something like a "kill -0 `cat master.pid`". Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org