Sophie

Sophie

distrib > CentOS > 6 > i386 > by-pkgid > bf5e60ee533d2ad5b138225a62ef2a74 > scriptlet

samba-3.5.4-68.el6_0.1.i686.rpm

PREUN

/bin/sh
if [ $1 = 0 ] ; then
    /sbin/service smb stop >/dev/null 2>&1 || :
    /sbin/service nmb stop >/dev/null 2>&1 || :
    /sbin/chkconfig --del smb
    /sbin/chkconfig --del nmb
fi
exit 0

#%postun

POSTIN

/bin/sh
/sbin/chkconfig --add smb
/sbin/chkconfig --add nmb
if [ "$1" -ge "1" ]; then
    /sbin/service smb condrestart >/dev/null 2>&1 || :
    /sbin/service nmb condrestart >/dev/null 2>&1 || :
fi
exit 0