Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 0f97fad854ed9858f19b8d0372a28e68 > scriptlet

swapd-0.2-8.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	if [ -f /var/lock/subsys/swapd ]; then
		/etc/rc.d/init.d/swapd stop 1>&2
	fi
	/sbin/chkconfig --del swapd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add swapd
if [ -f /var/lock/subsys/swapd ]; then
	/etc/rc.d/init.d/swapd restart 1>&2
else
	echo "Run \"/etc/rc.d/init.d/swapd start\" to start swap daemon."
fi