]> git.pld-linux.org Git - packages/watchdog.git/commitdiff
- use %service auto/ac/watchdog-5_2_4-3
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 13 Mar 2006 23:14:32 +0000 (23:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    watchdog.spec -> 1.27

watchdog.spec

index cd6196eefb86cd6d62914de29085ac76de71c40c..2862cb3a059f5ff0112530cf2b73650a0477d927 100644 (file)
@@ -4,7 +4,6 @@ Name:           watchdog
 Version:       5.2.4
 Release:       3
 License:       GPL
-Vendor:                Michael Meskes <meskes@debian.org>
 Group:         Applications/System
 Source0:       ftp://ftp.debian.org/debian/pool/main/w/watchdog/%{name}_%{version}.orig.tar.gz
 # Source0-md5: c6ac132d92110eb2c4670d4f684105c3
@@ -15,8 +14,9 @@ Patch0:               %{name}_%{version}-1.diff.gz
 Patch1:                %{name}-foreground.patch
 BuildRequires: autoconf
 BuildRequires: automake
-PreReq:                rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -60,17 +60,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add watchdog
-if [ -f /var/lock/subsys/watchdog ]; then
-       /etc/rc.d/init.d/watchdog restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/watchdog start\" to start watchdog daemon."
-fi
+%service watchdog restart "watchdog daemon"
 
 %preun
 if [ "$1" = 0 ] ; then
-       if [ -f /var/lock/subsys/watchdog ]; then
-               /etc/rc.d/init.d/watchdog stop 1>&2
-       fi
+       %service watchdog stop
        /sbin/chkconfig --del watchdog
 fi
 
This page took 0.326248 seconds and 4 git commands to generate.