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: fakebo-0_4_1-2~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffakebo.git;a=commitdiff_plain;h=50781d174d31b341986e73aed98bfde7e2cdf8a8 - reverting last change: removing new macros from %p{re,ost}{,un} Changed files: fakebo.spec -> 1.6 --- 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)