Sophie

Sophie

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

trousers-0.3.4-3.fc14.i686.rpm

PREIN

/bin/sh
getent group tss >/dev/null || groupadd -g 59 -r tss
getent passwd tss >/dev/null || \
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \
 -c "Account used by the trousers package to sandbox the tcsd daemon" tss
exit 0

PREUN

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

POSTIN

/bin/sh
/sbin/ldconfig
/sbin/chkconfig --add tcsd

POSTUN

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