]> git.pld-linux.org Git - packages/fetchmail.git/commitdiff
- use %service auto/th/fetchmail-6_3_2-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 27 Feb 2006 23:21:21 +0000 (23:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fetchmail.spec -> 1.227

fetchmail.spec

index 291b5ca6ebb5113ed2d8cd049e8ce0c5bbc7820f..d0ef055b06853fa4e5db2aa991597261ac9a21f5 100644 (file)
@@ -31,7 +31,7 @@ BuildRequires:        bison
 BuildRequires: flex
 BuildRequires: gettext-devel
 %{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      setup >= 2.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -209,17 +209,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post daemon
 /sbin/chkconfig --add fetchmail
-if [ -f /var/lock/subsys/fetchmail ]; then
-       /etc/rc.d/init.d/fetchmail restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/fetchmail start\" to start fetchmail daemon."
-fi
+%service fetchmail restart "fetchmail daemon"
 
 %preun daemon
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/fetchmail ]; then
-               /etc/rc.d/init.d/fetchmail stop >&2
-       fi
+       %service fetchmail stop
        /sbin/chkconfig --del fetchmail
 fi
 
This page took 0.03598 seconds and 4 git commands to generate.