From: Zachary Vance Date: Sun, 13 Dec 2015 03:55:28 +0000 (-0800) Subject: Check to make sure twitter archiver is running X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=e909067d15e76444088d8f4cb45898c70de2eb9c;p=za3k.git Check to make sure twitter archiver is running --- diff --git a/cgi-bin/service.status.d/twitter archive b/cgi-bin/service.status.d/twitter archive new file mode 100644 index 0000000..36aa599 --- /dev/null +++ b/cgi-bin/service.status.d/twitter archive @@ -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