Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e84b7503909305a2c62054710fb71e60 > scriptlet

ndtpd-1.0-12.fc15.i686.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
	/bin/systemctl --no-reload disable ndtpd.socket > /dev/null 2>&1 || :
	for i in `/bin/systemctl --full | grep ndtpd | grep running | cut -d' ' -f1`; do
		/bin/systemctl stop $i 2>&1 || :
	done
fi

#%postun	-n ndtpd
#/bin/systemctl daemon-reload >/dev/null 2>&1 || :
#if [ $1 -ge 1 ]; then
#	/bin/systemctl try-restart ndtpd.service >/dev/null 2>&1 || :
#fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
	/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi