PREUN
/bin/sh
if [ $1 -eq 0 ]; then service a-rex stop > /dev/null 2>&1 /sbin/chkconfig --del a-rex fi
POSTIN
/bin/sh
/sbin/chkconfig --add a-rex
POSTUN
/bin/sh
if [ $1 -ge 1 ]; then service a-rex condrestart > /dev/null 2>&1 fi
/bin/sh
if [ $1 -eq 0 ]; then service a-rex stop > /dev/null 2>&1 /sbin/chkconfig --del a-rex fi
/bin/sh
/sbin/chkconfig --add a-rex
/bin/sh
if [ $1 -ge 1 ]; then service a-rex condrestart > /dev/null 2>&1 fi