]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
Put PID of backup script in lockfile.
[backup.sh] / 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/