commit:     23171617759cdc31d16a18f38631ad177f4cc2a8
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 11:01:52 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 11:01:52 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=23171617

scripts/rsync-gen/refresh-mirror: echo we're about to kill procs

 scripts/rsync-generation/refresh-mirror.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/rsync-generation/refresh-mirror.sh 
b/scripts/rsync-generation/refresh-mirror.sh
index 348f2bf..8a12061 100755
--- a/scripts/rsync-generation/refresh-mirror.sh
+++ b/scripts/rsync-generation/refresh-mirror.sh
@@ -21,6 +21,7 @@ if [[ -f /tmp/rsync-master-busy ]] ; then
        if [[ $(tail -n1 ${LOGFILE}) == *"rsync done" ]] ; then
                pid=$(head -n1 ${LOGFILE})
                if [[ ${pid} -gt 0 ]] ; then
+                       echo "Killing stray/stuck process"
                        pstree -A -c -p ${pid} | grep -o '[0-9]\+' | xargs kill
                        rm /tmp/rsync-master-busy
                fi

Reply via email to