PREIN
/bin/sh
# Add "monotone" user per http://fedoraproject.org/wiki/Packaging/UsersAndGroups getent group monotone > /dev/null || groupadd -r monotone getent passwd monotone > /dev/null || useradd -r -g monotone -r -d /var/lib/monotone -s /sbin/nologin \ -c "Monotone Netsync Server" monotone exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then /sbin/service monotone stop > /dev/null 2>&1 /sbin/chkconfig --del monotone fi
POSTIN
/bin/sh
# Register the monotone service /sbin/chkconfig --add monotone