]> git.pld-linux.org Git - packages/dictd.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:
    dictd.spec -> 1.9

dictd.spec

index 5a18d7b3b76ef30d004bc8e2449aad17646f61a4..fb255649a4f9dee94870e0255de5887f7046eb86 100644 (file)
@@ -108,10 +108,18 @@ gzip -9nf {ANNOUNCE,ChangeLog,README,TODO,%{name}.conf,example*.conf,example.sit
 rm -rf $RPM_BUILD_ROOT
 
 %post
-DESC="dictd daemon"; %chkconfig_add
+/sbin/chkconfig --add %{name}
+if [ -f /var/lock/subsystem/%{name} ]; then
+        /etc/rc.d/init.d/%{name} restart >&2
+else
+        echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
+fi
     
 %preun
-%chkconfig_del
+if [ $1 = 0 ]; then
+        /sbin/chkconfig --del %{name}
+        /etc/rc.d/init.d/%{name} stop >&2 || true
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.102921 seconds and 4 git commands to generate.