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