PREIN
/bin/sh
# Add the arm4 user and group getent group arm4 >/dev/null || groupadd -r arm4 getent passwd arm4 >/dev/null || \ useradd -r -g arm4 -d /var/lib/arm4 -s /sbin/nologin \ -c "ARM 4 Daemon" arm4 exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then /sbin/service arm4 stop > /dev/null 2>&1 /usr/bin/arm4_control remove > /dev/null 2>&1 /sbin/chkconfig --del arm4 fi
POSTIN
/bin/sh
/sbin/ldconfig # Register the arm4 service /sbin/chkconfig --add arm4