PREUN
/bin/sh
if [ "$1" = "0" ]; then
/sbin/chkconfig --del ggaoed
{
if [ -f /var/lock/subsys/ggaoed ]; then
/sbin/service ggaoed stop 1>&2 || :;
fi }; # nuke config cache if uninstalling
rm -rf /var/lib/ggaoed/*
fi
POSTIN
/bin/sh
/sbin/chkconfig --add ggaoed
/sbin/chkconfig ggaoed off
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/ggaoed ] && . /etc/sysconfig/ggaoed
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/ggaoed ]; then
/sbin/service ggaoed restart 1>&2 || :;
else
echo 'Run "/sbin/service ggaoed start" to start ggaoed service.'
fi
fi };