Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > a59352a0c2eb313e09064d7cd64896db > scriptlet

camserv-0.5.1-3.amd64.rpm

PREUN

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

POSTIN

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