PREIN
/bin/sh
/usr/sbin/useradd -M -r -s /sbin/nologin -d /var/partimaged \
-c "Partition imaging utility" partimag > /dev/null 2>&1 || :
PREUN
/bin/sh
if [ $1 -eq 0 ]; then
/sbin/service partimaged stop &>/dev/null || :
/sbin/chkconfig --del partimaged
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add partimaged
fi
/sbin/service partimaged condrestart &>/dev/null || :
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then
/sbin/service partimaged condrestart &>/dev/null || :
fi
if [ $1 -eq 0 ] ; then
/usr/sbin/userdel partimag >/dev/null 2>&1 || :
fi