Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 2b8e7c72835a44a411a39ec27fcadb35 > scriptlet

openvpn-2.0.9-3.amd64.rpm

PREUN

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

POSTIN

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