PREIN
/bin/sh
getent group tokyotyrant >/dev/null || groupadd -r tokyotyrant getent passwd tokyotyrant >/dev/null || \ useradd -r -g tokyotyrant -d /var/lib/tokyotyrant -s /sbin/nologin \ -c 'Tokyo Tyrant Server' tokyotyrant exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then /sbin/service tokyotyrant stop &> /dev/null /sbin/chkconfig --del tokyotyrant fi
POSTIN
/bin/sh
/sbin/chkconfig --add tokyotyrant