From 50781d174d31b341986e73aed98bfde7e2cdf8a8 Mon Sep 17 00:00:00 2001 From: saq Date: Thu, 26 Jul 2001 05:42:06 +0000 Subject: [PATCH] - reverting last change: removing new macros from %p{re,ost}{,un} Changed files: fakebo.spec -> 1.6 --- fakebo.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/fakebo.spec b/fakebo.spec index ac7866b..31e608f 100644 --- a/fakebo.spec +++ b/fakebo.spec @@ -44,10 +44,21 @@ gzip -9nf INSTALL HACKING AUTHORS TODO NEWS ChangeLog README \ rm -rf $RPM_BUILD_ROOT %post -DESC="fakebo daemon"; %chkconfig_add +/sbin/chkconfig --add fakebo +if [ -f /var/lock/subsys/fakebo ]; then + /etc/rc.d/init.d/fakebo restart 1>&2 +else + echo "Run \"/etc/rc.d/init.d/fakebo start\" to start fakebo daemon." +fi -%preun -%chkconfig_del + +%postun +if [ "$1" = "0" ]; then + if [ -f /var/lock/subsys/fakebo ]; then + /etc/rc.d/init.d/fakebo stop 1>&2 + fi + /sbin/chkconfig --del fakebo +fi %files %defattr(644,root,root,755) -- 2.44.0