From: saq Date: Thu, 26 Jul 2001 05:42:06 +0000 (+0000) Subject: - reverting last change: removing new macros from %p{re,ost}{,un} X-Git-Tag: dictd-1_5_5-3~8 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdictd.git;a=commitdiff_plain;h=71d80b0ef1897d3a9bc7315de5179f58f388c9b8 - reverting last change: removing new macros from %p{re,ost}{,un} Changed files: dictd.spec -> 1.9 --- diff --git a/dictd.spec b/dictd.spec index 5a18d7b..fb25564 100644 --- a/dictd.spec +++ b/dictd.spec @@ -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)