PREUN
/bin/sh
if [ $1 = 0 ] ; then /sbin/service imagefactory stop >/dev/null 2>&1 /sbin/chkconfig --del imagefactory fi
POSTIN
/bin/sh
/sbin/chkconfig --add imagefactory
/bin/sh
if [ $1 = 0 ] ; then /sbin/service imagefactory stop >/dev/null 2>&1 /sbin/chkconfig --del imagefactory fi
/bin/sh
/sbin/chkconfig --add imagefactory