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