- need rebuilt rpm (with new macros.pld) to build these
Changed files:
apmd.spec -> 1.23
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/chkconfig --add apmd
-if [ -f /var/lock/subsys/apmd ]; then
- /etc/rc.d/init.d/apmd restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/apmd start\" to start apmd daemon."
-fi
+DESC="apmd daemon"; %chkconfig_post
%preun
-if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/apmd ]; then
- /etc/rc.d/init.d/apmd stop 1>&2
- fi
- /sbin/chkconfig --del apmd
-fi
+%chkconfig_preun
%files
%defattr(644,root,root,755)