]> git.pld-linux.org Git - packages/dgee.git/blobdiff - dgee.spec
- do more tests in post and preun section
[packages/dgee.git] / dgee.spec
index 40d1b1046505fdcbac1aff183a97c969ca2a09ac..76fbe6d6b2b2fbb49f45a29a83efbeb5e8f2f2bc 100644 (file)
--- a/dgee.spec
+++ b/dgee.spec
@@ -113,6 +113,12 @@ if [ -f /var/lock/subsys/httpd ]; then
 fi
 
 /sbin/ldconfig
+
+if [ -f /var/lock/subsys/dgee ]; then
+        /etc/rc.d/init.d/dgee restart 1>&2
+else
+        echo "Run \"/etc/rc.d/init.d/dgee start\" to start goltwater and dgee services."
+fi
 /sbin/chkconfig --add dgee
 
 %preun
@@ -127,8 +133,11 @@ if [ "$1" = "0" ]; then
         if [ -f /var/lock/subsys/httpd ]; then
                 /etc/rc.d/init.d/httpd restart 1>&2
         fi
+        if [ -f /var/lock/subsys/dgee ]; then
+                /etc/rc.d/init.d/dgee stop 1>&2
+        fi
+        /sbin/chkconfig --del dgee
 fi
-/sbin/chkconfig --del dgee
 
 %postun
 /sbin/ldconfig
This page took 0.051638 seconds and 4 git commands to generate.