From 50cd710163edb398e72d56414d956607919a805b Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 17 Apr 2024 01:59:31 -0600 Subject: imworkingon: Add a systemd unit to flush the cache at midnight --- aux/www-refresh.timer | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 aux/www-refresh.timer (limited to 'aux/www-refresh.timer') diff --git a/aux/www-refresh.timer b/aux/www-refresh.timer new file mode 100644 index 0000000..d507e2f --- /dev/null +++ b/aux/www-refresh.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Website update cron job + +[Timer] +Persistent=true +# somewhere between 4am and 5am MDT (in the summer; +# between 3am and 4am MST in the winter) +OnCalendar=*-*-* 10:00:00 UTC +RandomizedDelaySec=1h + +[Install] +WantedBy=default.target -- cgit v1.2.3-2-g168b