From e909067d15e76444088d8f4cb45898c70de2eb9c Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Sat, 12 Dec 2015 19:55:28 -0800 Subject: [PATCH] Check to make sure twitter archiver is running --- cgi-bin/service.status.d/twitter archive | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cgi-bin/service.status.d/twitter archive 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 -- 2.47.3