PREUN
/bin/sh
# NB ththis will have no effect under systemd as they will be redirected to
# chkconfig but the service masking above will take priority
/usr/share/rpm-helper/del-service portreserve $1 portreserve
POSTIN
/bin/sh
# NB this will have no effect under systemd as they will be redirected to
# chkconfig but the service masking above will take priority
/usr/share/rpm-helper/add-service portreserve $1 portreserve
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then
/sbin/service portreserve condrestart >/dev/null 2>&1
fi