]> git.pld-linux.org Git - packages/fetchmail.git/commitdiff
- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:06 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fetchmail.spec -> 1.134

fetchmail.spec

index 66a6236a34baacf6dcc3b2ea671930a5a92e0293..666f680a770f4fb79066539246b5fb0eee2b5fb4 100644 (file)
@@ -178,10 +178,20 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
 %find_lang %{name}
 
 %post daemon
-DESC="fetchmail daemon"; %chkconfig_add
+/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
 
 %preun daemon
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/fetchmail ]; then
+               /etc/rc.d/init.d/fetchmail stop >&2
+       fi
+       /sbin/chkconfig --del fetchmail
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.050165 seconds and 4 git commands to generate.