]> git.pld-linux.org Git - packages/athcool.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:20:04 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    athcool.spec -> 1.28

athcool.spec

index ea566e192442b15617981435a3e713b96ca949f5..1dd76ae878a0781bc83149b9206f86745f162ceb 100644 (file)
@@ -12,6 +12,7 @@ Source1:      %{name}.init
 Source2:       %{name}.sysconfig
 URL:           http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
 BuildRequires: pciutils-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,postun): /sbin/chkconfig
 Requires:      rc-scripts
 ExclusiveArch: %{ix86}
@@ -64,9 +65,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add athcool
+%service athcool restart
 
 %preun
 if [ "$1" = "0" ]; then
+       %service athcool stop
        /sbin/chkconfig --del athcool
 fi
 
This page took 0.450466 seconds and 4 git commands to generate.