again
[infrastructure.git] / scripts / manage-git-mirror.sh
index 220bc57..d253160 100755 (executable)
@@ -6,8 +6,8 @@ COMMAND=$(basename $0)
 function stop () {
     while true; do 
        echo -n . 
-       ls /git-mirror/RUNNING_MIRROR >& /dev/null || { 
-           touch /git-mirror/RUNNING_MIRROR 
+       ls /git-mirror/LOCK >& /dev/null || { 
+           touch /git-mirror/LOCK 
            echo "OK, git-mirror stopped for an hour"
            break 
        } 
@@ -19,8 +19,8 @@ function start () {
     if pgrep git-mirror >& /dev/null; then
        echo "git-mirror instance is running"
     else
-       echo "Cleaned RUNNING_MIRROR"
-       rm /git-mirror/RUNNING_MIRROR
+       echo "Cleaned LOCK"
+       rm /git-mirror/LOCK
     fi
 }
 
@@ -33,7 +33,7 @@ function status () {
        echo "No running instance of git-mirror"
     fi
     echo "Lock file status"
-    ls -l /git-mirror/RUNNING_MIRROR
+    ls -l /git-mirror/LOCK
 }
 
 function main () {