]> git.treefish.org Git - backmeupscotty.git/commitdiff
Using /var/lock for lockdirs.
authorAlexander Schmidt <alex@treefish.org>
Sat, 14 Feb 2015 17:44:12 +0000 (18:44 +0100)
committerAlexander Schmidt <alex@treefish.org>
Sat, 14 Feb 2015 17:44:12 +0000 (18:44 +0100)
backmeupscotty

index 68afaf6d591cb50e72a24b5e54d95097dcd4d917..1d092663a3781e67a5c27ef782f0b2fb4f483ae2 100644 (file)
@@ -126,7 +126,7 @@ function scottysync {
 }
 
 function deleteLock {
-    if ! rmdir /var/run/$(basename $0).lock; then
+    if ! rmdir /var/lock/$(basename $0); then
        scottyerror "Could not delete lockfile /tmp/$(basename $0).lock!"
     fi
 }
@@ -209,7 +209,7 @@ function backmeupscotty {
     exit 0
 }
 
-if ! mkdir /var/run/$(basename $0).lock; then
+if ! mkdir /var/lock/$(basename $0); then
     scottyerror "Another instance of $(basename $0) is still running!"
     exit 1
 else