Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 2b37a2f4dbe4fc52d2666c40383efa92 > scriptlet

condor-7.4.2-2.fc14.i686.rpm

PREIN

/bin/sh
getent group condor >/dev/null || groupadd -r condor
getent passwd condor >/dev/null || \
  useradd -r -g condor -d /var/lib/condor -s /sbin/nologin \
    -c "Owner of Condor Daemons" condor
exit 0

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add condor
/sbin/ldconfig
test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled
if [ $? = 0 ]; then
   semanage fcontext -a -t unconfined_execmem_exec_t /usr/sbin/condor_startd
   restorecon  /usr/sbin/condor_startd
fi

POSTUN

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