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

fakebo.spec

index ac7866b0098d676141442cf2f0c2b344e1acba6a..31e608fe20670baa836f1eeb2738acfb85a09865 100644 (file)
@@ -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)
This page took 0.085746 seconds and 4 git commands to generate.