summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-10-10 23:54:17 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-10-10 23:54:17 -0400
commiteddc4bba51a58f0201c77353ad53c4772c8943a7 (patch)
tree22a7b52251a89c0fdbacd42bd3e99ba9558d8642
parentbacdb32d4aa6308e0bdc24c8d0abd779133133b7 (diff)
cron
-rwxr-xr-xcron-daily4
-rw-r--r--dashboard-daily.service6
-rw-r--r--dashboard-daily.timer9
3 files changed, 19 insertions, 0 deletions
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