1 2 3
/sbin/chkconfig --add tao-cosnotification # ---------------- tao-costrading ----------------
1 2 3 4 5
if [ "$1" -ge "1" ]; then /sbin/service tao-cosnotification condrestart > /dev/null 2>&1 fi # ---------------- tao-costrading ----------------
1 2 3 4 5 6 7
getent group tao >/dev/null || /usr/sbin/groupadd -r tao getent passwd tao >/dev/null || \ /usr/sbin/useradd -r -g tao -d /etc/tao -s /sbin/nologin \ -c "TAO Services" tao exit 0 # ---------------- tao-costrading ----------------
1 2 3 4 5 6
if [ $1 = 0 ]; then /sbin/service tao-cosnotification stop > /dev/null 2>&1 /sbin/chkconfig --del tao-cosnotification fi # ---------------- tao-costrading ----------------