[openssl-commits] [tools] master update

Richard Levitte levitte at openssl.org
Wed Dec 6 16:19:13 UTC 2017


The branch master has been updated
       via  c1388cc424c5c1aaab2b1193e7d9a82310a0e6de (commit)
      from  4d6363793d47c66069634a58c0d21c5e52e2e3b7 (commit)


- Log -----------------------------------------------------------------
commit c1388cc424c5c1aaab2b1193e7d9a82310a0e6de
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Dec 6 17:15:19 2017 +0100

    run-checker: add run-checker-cleanup.sh
    
    This is a companion script for run-checker.sh, to be used as emergency
    cleanup if run-checker.sh was killed in the middle of its operation
    and left behind lock files / directories.
    
    Typically, this would appear in a crontab, like this:
    
        @reboot  (set -x; cd ${HOME}/run-checker && bash ./run-checker-cleanup.sh)

-----------------------------------------------------------------------

Summary of changes:
 run-checker/run-checker-cleanup.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100755 run-checker/run-checker-cleanup.sh

diff --git a/run-checker/run-checker-cleanup.sh b/run-checker/run-checker-cleanup.sh
new file mode 100755
index 0000000..6e8b383
--- /dev/null
+++ b/run-checker/run-checker-cleanup.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+#Script for emergency cleanup of the run-checker.sh work directory
+#Place this script in the same directory as run-checker.sh
+
+#This really just runs the takedown hook, so unless there are any
+#hooks present, nothing at all will happen.
+
+here=$(cd $(dirname $0); pwd)
+
+run-hook () {
+    local hookname=$1; shift
+    if [ -x $here/hook-$hookname ]; then
+        (cd $here; ./hook-$hookname "$@")
+    fi
+}
+
+run-hook takedown


More information about the openssl-commits mailing list