PREIN
/bin/sh
/usr/sbin/fedora-groupadd 40 -r flow-tools &>/dev/null || :
/usr/sbin/fedora-useradd 40 -r -s /sbin/nologin -d /var/flow-tools -M \
-c '"Network flow monitoring"' -g flow-tools flow-tools &>/dev/null || :
PREUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/service flow-capture stop >/dev/null 2>&1
/sbin/chkconfig --del flow-capture
fi
POSTIN
/bin/sh
/sbin/ldconfig
/sbin/chkconfig --add flow-capture
POSTUN
/bin/sh
/sbin/ldconfig
if [ "$1" -ge "1" ]; then
/sbin/service flow-capture condrestart >/dev/null 2>&1 || :
fi
test "$1" != 0 || /usr/sbin/fedora-userdel flow-tools &>/dev/null || :
test "$1" != 0 || /usr/sbin/fedora-groupdel flow-tools &>/dev/null || :