Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main > by-pkgid > c1f866cf25374b454c2b737fec9e14c2 > scriptlet

arpwatch-2.1a13-22.el5.x86_64.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -g 77 pcap  2> /dev/null
/usr/sbin/useradd -u 77 -g 77 \
	-s /sbin/nologin -M -r -d /var/arpwatch pcap 2> /dev/null \
	|| /usr/bin/chsh pcap /sbin/nologin 2> /dev/null
exit 0

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	/sbin/service arpwatch stop > /dev/null 2>&1
	/sbin/chkconfig --del arpwatch
fi
exit 0

POSTIN

/bin/sh
/sbin/chkconfig --add arpwatch

POSTUN

/bin/sh
/sbin/service arpwatch condrestart >/dev/null 2>&1 || :