Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 8a33df79e3fddd37076b100a78eae23f > scriptlet

nxtvepg-2.8.1-5.fc12.i686.rpm

PREIN

/bin/sh
getent group nxtvepg >/dev/null || groupadd -r nxtvepg
getent passwd nxtvepg >/dev/null || useradd -r -g nxtvepg \
  -d /var/lib/nxtvepg -s /sbin/nologin \
  -c "nexTView EPG decoder daemon" nxtvepg
exit 0

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add nxtvepgd

POSTUN

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