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