POSTIN
/bin/sh
if [ "$1" = "1" ]; then /sbin/service httpd condrestart; fi
# make sure MySQL server is running
manager_pid=`my_print_defaults manager | grep '^--pid-file=' | cut -d= -f2`
mysql_pid=`my_print_defaults mysqld | grep '^--pid-file=' | cut -d= -f2`
if ! [ -f /var/lock/subsys/mysqlmanager -o -f /var/lock/subsys/mysqld -o -f /var/lock/subsys/mysqld-max -o -f "$manager_pid" -o -f "$mysql_pid" ]; then
if [ -x /usr/sbin/mysqld-max -o -x /etc/rc.d/init.d/mysqld-max ]; then
/etc/rc.d/init.d/mysqld-max start 1>&2;
else
/etc/rc.d/init.d/mysqld start 1>&2;
fi
fi
POSTUN
/bin/sh
if [ "$1" = "0" ]; then /sbin/service httpd condrestart; else /sbin/service httpd condreload; fi