PREIN
/bin/sh
if ! id sqlgrey &>/dev/null ; then /usr/sbin/groupadd -r sqlgrey || : /usr/sbin/useradd -r -s /sbin/nologin -d /var/lib/sqlgrey -M \ -c 'SQLgrey Server' -g sqlgrey sqlgrey || : fi
PREUN
/bin/sh
if [ "$1" -eq 0 ]; then /sbin/service sqlgrey stop || : /sbin/chkconfig --del sqlgrey || : fi
POSTIN
/bin/sh
/sbin/chkconfig --add sqlgrey || : /sbin/service sqlgrey condrestart || :