Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 723cad2015d8cf39668fbb60c5983ec8 > scriptlet

tokyotyrant-1.1.40-1.fc14.i686.rpm

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