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