Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 02a6b881b7dfdfdb3e653f34c1dabba5 > scriptlet

wesnoth-server-1.2-1.amd64.rpm

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add wesnothd
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/wesnothd ] && . /etc/sysconfig/wesnothd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/wesnothd ]; then
/sbin/service wesnothd restart 1>&2 || :;
else
echo 'Run "/sbin/service wesnothd start" to start wesnothd service.'
fi
fi };