]> git.za3k.com Git - za3k.git/commitdiff
Check to make sure twitter archiver is running
authorZachary Vance <za3k@za3k.com>
Sun, 13 Dec 2015 03:55:28 +0000 (19:55 -0800)
committerZachary Vance <za3k@za3k.com>
Sun, 13 Dec 2015 03:55:28 +0000 (19:55 -0800)
cgi-bin/service.status.d/twitter archive [new file with mode: 0644]

diff --git a/cgi-bin/service.status.d/twitter archive b/cgi-bin/service.status.d/twitter archive
new file mode 100644 (file)
index 0000000..36aa599
--- /dev/null
@@ -0,0 +1,5 @@
+./up? "http://za3k.com/~twitter_archive/" || exit 1
+./up? "https://za3k.com/~twitter_archive/" || exit 1
+FILE=$(./last-updated-in-dir /home/twitter_archive)
+ONE_WEEK=$((7 * 24 * 60 * 60))
+./file-updated? "${FILE}" "${ONE_WEEK}" || exit 1