Sophie

Sophie

distrib > PLD > th > x86_64 > by-pkgid > bb0f87ca36a93ebcae0acac89bda3696 > scriptlet

ggaoed-1.1-2.x86_64.rpm

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 };