Sophie

Sophie

distrib > PLD > th > x86_64 > by-pkgid > 251011c21b19d53f8e64cafba44bf03f > scriptlet

gkrellm-gkrellmd-2.3.5-7.x86_64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/gkrellmd ]; then
/sbin/service gkrellmd stop 1>&2 || :;
fi
fi };	/sbin/chkconfig --del gkrellmd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add gkrellmd
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/gkrellmd ] && . /etc/sysconfig/gkrellmd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/gkrellmd ]; then
/sbin/service gkrellmd restart 1>&2 || :;
else
echo 'Run "/sbin/service gkrellmd start" to start gkrellmd service.'
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/gkrellmd ]; then
echo 'Run "/sbin/service gkrellmd restart" to restart gkrellmd service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };