1 2 3
[ -x /sbin/chkconfig ] && /sbin/chkconfig --add jetty6 || : # Post-Uninstall
1 2 3 4 5
# Add the "jetty" user and group /usr/sbin/groupadd -r jetty &>/dev/null || : # Use /bin/sh so init script will start properly. /usr/sbin/useradd -r -s /bin/sh -d /usr/share/jetty6 -M \ jetty &>/dev/null || :
1 2 3 4 5 6 7 8
if [ $1 = 0 ]; then [ -f /var/lock/subsys/jetty6 ] && /etc/rc.d/init.d/jetty6 stop || : [ -f /etc/rc.d/init.d/jetty6 -a -x /sbin/chkconfig ] && /sbin/chkconfig --del jetty6 || : /usr/sbin/userdel jetty >> /dev/null 2>&1 || : fi # Post-Install