From bad324fdcfcb4711b0d9af3283e8ebd2228d1948 Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Sun, 9 Jun 2024 12:35:50 +0200 Subject: [PATCH] add xlxapi-update --- scripts/xlxapi-update | 3 +++ scripts/xlxapi-update.service | 9 +++++++++ scripts/xlxapi-update.timer | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100755 scripts/xlxapi-update create mode 100644 scripts/xlxapi-update.service create mode 100644 scripts/xlxapi-update.timer diff --git a/scripts/xlxapi-update b/scripts/xlxapi-update new file mode 100755 index 0000000..ff45d13 --- /dev/null +++ b/scripts/xlxapi-update @@ -0,0 +1,3 @@ +#!/bin/bash +/usr/bin/wget -q -O- http://localhost/index.php?callhome=1 > /dev/null + diff --git a/scripts/xlxapi-update.service b/scripts/xlxapi-update.service new file mode 100644 index 0000000..9e5aa85 --- /dev/null +++ b/scripts/xlxapi-update.service @@ -0,0 +1,9 @@ +[Unit] +Description=XLX API Service +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/xlxapi-update + + diff --git a/scripts/xlxapi-update.timer b/scripts/xlxapi-update.timer new file mode 100644 index 0000000..73570ae --- /dev/null +++ b/scripts/xlxapi-update.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run xlx api call every day (if nobody opens the dashboard) + +[Timer] +OnCalendar=*-*-* 1:0:0 +Unit=xlxapi-update.service + +[Install] +WantedBy=multi-user.target