Explorar o código

fix stop script

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
faee3c38ad
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      cvs/rc.cvs

+ 3 - 3
cvs/rc.cvs

@@ -23,9 +23,9 @@
 %stop -p 200 -u root
     if opServiceEnabled cvs_pserverd; then
         if [ -f $cvs_pserverd_pidfile ]; then
-            kill -TERM `cat $cvs_pserverd_pidfile`
-            sleep f
-            kill -KILL `cat $cvs_pserverd_pidfile`
+            kill -TERM `cat $cvs_pserverd_pidfile` >/dev/null 2>&1 || true
+            sleep 2
+            kill -KILL `cat $cvs_pserverd_pidfile` >/dev/null 2>&1 || true
             rm -f $cvs_pserverd_pidfile >/dev/null 2>&1 || true
         fi
     fi