From 5e8b95f582e1327273442cc2ad0388aec5165d9c Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Sat, 14 Feb 2015 18:44:12 +0100 Subject: [PATCH] Using /var/lock for lockdirs. --- backmeupscotty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backmeupscotty b/backmeupscotty index 68afaf6..1d09266 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -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 -- 2.39.5