From eddc4bba51a58f0201c77353ad53c4772c8943a7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 10 Oct 2016 23:54:17 -0400 Subject: cron --- cron-daily | 4 ++++ dashboard-daily.service | 6 ++++++ dashboard-daily.timer | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100755 cron-daily create mode 100644 dashboard-daily.service create mode 100644 dashboard-daily.timer diff --git a/cron-daily b/cron-daily new file mode 100755 index 0000000..ecc5266 --- /dev/null +++ b/cron-daily @@ -0,0 +1,4 @@ +#!/bin/sh +cd "$(dirname -- "$0")" +date > NET-crt.sh +make diff --git a/dashboard-daily.service b/dashboard-daily.service new file mode 100644 index 0000000..bafdbdd --- /dev/null +++ b/dashboard-daily.service @@ -0,0 +1,6 @@ +[Unit] +Description=Dashboard daily update + +[Service] +Type=oneshot +ExecStart=/bin/sh -c '~/dashboard/cron-daily' diff --git a/dashboard-daily.timer b/dashboard-daily.timer new file mode 100644 index 0000000..de7df23 --- /dev/null +++ b/dashboard-daily.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Dashboard daily update + +[Timer] +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target -- cgit v1.1-4-g5e80