Changed files:
autolog.spec -> 1.26
%post
/sbin/chkconfig --add autolog
%post
/sbin/chkconfig --add autolog
-if [ ! -f /var/lock/subsys/autolog ]; then
+if [ -f /var/lock/subsys/autolog ]; then
/etc/rc.d/init.d/autolog restart >&2
else
echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
/etc/rc.d/init.d/autolog restart >&2
else
echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
%preun
if [ "$1" = "0" ]; then
%preun
if [ "$1" = "0" ]; then
- if [ ! -f /var/lock/subsys/autolog ]; then
+ if [ -f /var/lock/subsys/autolog ]; then
/etc/rc.d/init.d/autolog stop >&2
fi
/sbin/chkconfig --del autolog
/etc/rc.d/init.d/autolog stop >&2
fi
/sbin/chkconfig --del autolog