Giampaolo Tomassoni wrote:
        # Check for amavis termination
        while [[ ! -z "${PIDS}" ]]; do
                sleep 1
                PIDS=$( /sbin/pidof "${AMV_NM}" )
        done

In cases like this I usually just put the "sleep" command in the init script like this:

...

case "$1" in
...

  restart|reload)
        stop
        sleep 5  <=====
        start
        RETVAL=$?
        ;;

...

I'm not a gentoo user, though, so YMMV. I'm using RedHat/CentOS. Still I'd bet the init scripts aren't that different.

Peter

Reply via email to