]> git.pld-linux.org Git - packages/memcached.git/commitdiff
- reload memcached we control
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 6 May 2010 11:34:35 +0000 (11:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    memcached.init -> 1.9

memcached.init

index 5246e7623cb97caf24dff79e500c267047cc0f8d..d733d9c82da68214e57089ee194e361587316cb8 100644 (file)
@@ -86,9 +86,15 @@ reload() {
                return
        fi
 
-       msg_reloading "memcached"
-       killproc memcached -HUP
-       RETVAL=$?
+       local listen ip port
+       for listen in $LISTEN; do
+               ip=${listen%:*}
+               port=${listen##*:}
+               msg_reloading "memcached ($ip:$port)"
+               pidfile=/var/run/memcached/"$ip.$port.pid"
+               killproc --pidfile $pidfile memcached -HUP
+               RETVAL=$((RETVAL + $?))
+       done
 }
 
 RETVAL=0
This page took 0.081511 seconds and 4 git commands to generate.