Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 97470ecd4a241a803fbb125a8c607c42 > scriptlet

stunnel-standalone-4.20-1.amd64.rpm

PREUN

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

POSTIN

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