]> git.sesse.net Git - backup.sh/commitdiff
Put PID of backup script in lockfile.
authorroot <empty>
Sat, 22 Dec 2007 03:15:28 +0000 (03:15 +0000)
committerroot <empty>
Sat, 22 Dec 2007 03:15:28 +0000 (03:15 +0000)
backup.sh

index 12b210ac5bd6cbc6a734f98b79e058e899651e8c..b672257073f722e6d80693eb8b45d8e28d9a9102 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -68,6 +68,7 @@ if [ -e $LOCKFILE ]; then
        exit 1
 fi;
 touch $LOCKFILE
+echo "$$" > $LOCKFILE
 
 #syntax of remotestat:
 #hostname:/directory/