Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 9affdb6ef2a01524a8e1714007abbbb6 > scriptlet

courier-imapd-0.53.3-3.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	if [ -e /var/spool/courier/tmp/imapd.pid ]; then
		/usr/sbin/imapd stop
	fi
	if [ -e /var/spool/courier/tmp/imapd-ssl.pid ]; then
		/usr/sbin/imapd-ssl stop
	fi
fi

POSTIN

/bin/sh
# TODO: use rc-scripts here
if [ -e /var/spool/courier/tmp/imapd.pid ]; then
	/usr/sbin/imapd stop
	/usr/sbin/imapd start
else
	echo
	echo 'Type "/usr/sbin/imapd start" to start imapd server'
	echo
fi
if [ -e /var/spool/courier/tmp/imapd-ssl.pid ]; then
	/usr/sbin/imapd-ssl stop
	/usr/sbin/imapd-ssl start
else
	echo
	echo Type "/usr/sbin/imapd-ssl start" to start imapd-ssl server
	echo
fi