diff options
Diffstat (limited to 'yarns.webapp/900-implementations.yarn')
-rw-r--r-- | yarns.webapp/900-implementations.yarn | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/yarns.webapp/900-implementations.yarn b/yarns.webapp/900-implementations.yarn index 24dcf51..06411a7 100644 --- a/yarns.webapp/900-implementations.yarn +++ b/yarns.webapp/900-implementations.yarn @@ -28,7 +28,7 @@ be running until it crashes or is explicitly killed. IMPLEMENTS WHEN WEBAPP is started start_webapp - + Kill the running WEBAPP, using the recorded PID. We need to do this both as a WHEN and a FINALLY step. @@ -89,9 +89,9 @@ most of the configuration. python -c ' import os import yarnlib - + MATCH_1, MATCH_2, MATCH_3, MATCH_4 = yarnlib.matches() - + new = { "type": "lorries", "interval": "0s", @@ -117,7 +117,7 @@ most of the configuration. import yarnlib MATCH_1, MATCH_2, MATCH_3 = yarnlib.matches() - + new = { "type": "troves", "trovehost": MATCH_3, @@ -142,7 +142,7 @@ file. import os import json import yarnlib - + MATCH_1, MATCH_2, MATCH_3, MATCH_4 = yarnlib.matches() filename = os.path.join(yarnlib.DATADIR, MATCH_2, MATCH_1) @@ -207,9 +207,9 @@ file. Note that the Trove must already be in the configuration file. python -c ' import os import yarnlib - + MATCH_1, MATCH_2, MATCH_3, MATCH_4, MATCH_5 = yarnlib.matches() - + filename = os.path.join(yarnlib.DATADIR, MATCH_2, MATCH_1) objs = yarnlib.load_json_from_file(filename) @@ -432,7 +432,7 @@ purpose. # that's OK on filesystems that only store full-second timestamps. # We generate timestamps in (roughly) ISO 8601 format, with stat, # and those can be compared using simple string comparison. - + status=$(stat -c %y "$DATADIR/lc-status.html") request=$(stat -c %y "$DATADIR/request.timestamp") test "$request" = "$status" || test "$request" '<' "$status" |