PREIN
/bin/sh
# Add the "tomcat" user /usr/sbin/useradd -c "Tomcat" -s /sbin/nologin -r -d /srv/tomcat tomcat 2> /dev/null || :
PREUN
/bin/sh
if [ "$1" = "0" ]; then /sbin/chkconfig --del tomcat /sbin/service tomcat stop fi
POSTIN
/bin/sh
/sbin/chkconfig --add tomcat /sbin/service tomcat condrestart
POSTUN
/bin/sh
if [ "$1" = "0" ]; then /usr/sbin/userdel tomcat 2>/dev/null || : /usr/sbin/groupdel tomcat 2>/dev/null || : fi