Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 0d487e2c5f4cf0bbb7b07ee7039f2930 > scriptlet

wesnoth-server-1.8.5-2.fc14.i686.rpm

PREIN

/bin/sh
/usr/sbin/useradd -c "Wesnoth server" -s /sbin/nologin \
          -r -d /var/run/wesnothd wesnothd 2> /dev/null || :

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
    /etc/rc.d/init.d/wesnothd stop >/dev/null 2>&1 || :
    /sbin/chkconfig --del wesnothd
fi
#%endif

#%ifnarch noarch

POSTIN

/bin/sh
/sbin/chkconfig --add wesnothd
if [ $1 -gt 1 ]; then
    /etc/rc.d/init.d/wesnothd try-restart >/dev/null || :
fi