* Martin Pala [27.09.2008]
...
=> the behavior is given by current monit limitation. We plan to
improve the dependency behavior and use the result of the full service
check in the action chain, which will solve your problem.
The workaround could be to modify your scripts this way ... for
example monit_dep.sh:
--8<--
#!/bin/bash
#
# WORKAROUND FOR MONIT DEPENDENCY ACTION CHAIN
#
if test -f /etc/monit/monit_dep.txt; then exit 0; fi
case $1 in
start)
touch /etc/monit/monit_dep.txt
echo "asdfasdfasdfasdf" > /etc/monit/monit_dep.txt
echo "monit start" >> /etc/monit/hier.txt
;;
stop)
echo "monit stop" >> /etc/monit/hier.txt
;;
esac
--8<--
Thanks,
Martin