]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty
Replaced flocking again with mkdir lock to prevent leaking file descriptors when...
[backmeupscotty.git] / backmeupscotty
index be1ce209a4de43dba7ad413ce52cc98a3d9f0fc9..e17a4c6a215b8f02d4de9eb4e4d6b033eec3a740 100644 (file)
@@ -131,10 +131,6 @@ function deleteLock {
     fi
 }
 
-function prepare {
-    scottyinfo "Preparing for sync."
-}
-
 function cleanup_abort {
     scottyerror "Caught exit signal! Cleaning up."
 
@@ -213,7 +209,7 @@ function backmeupscotty {
     exit 0
 }
 
-if ! mkdir /tmp/$(basename $0).lock; then
+if ! mkdir /var/run/$(basename $0).lock; then
     scottyerror "Another instance of $(basename $0) is still running!"
     exit 1
 else