Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > dc4c0730511cc4c5591323f28effeee9 > scriptlet

groonga-server-1.2.7-1.fc14.i686.rpm

PREIN

/bin/sh
getent group groonga >/dev/null || groupadd -r groonga
getent passwd groonga >/dev/null || \
       useradd -r -g groonga -d /var/lib/groonga -s /sbin/nologin \
	-c 'groonga' groonga
exit 0

PREUN

/bin/sh
if [ $1 = 0 ] ; then
	/sbin/service groonga stop >/dev/null 2>&1 || :
	/sbin/chkconfig --del groonga
fi

POSTIN

/bin/sh
/sbin/chkconfig --add groonga

POSTUN

/bin/sh
if [ $1 -ge 1 ] ; then
	/sbin/service groonga condrestart >/dev/null 2>&1 || :
fi