mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
add xlxapi-update
This commit is contained in:
parent
890e488059
commit
bad324fdcf
3
scripts/xlxapi-update
Executable file
3
scripts/xlxapi-update
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
/usr/bin/wget -q -O- http://localhost/index.php?callhome=1 > /dev/null
|
||||||
|
|
||||||
9
scripts/xlxapi-update.service
Normal file
9
scripts/xlxapi-update.service
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=XLX API Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/xlxapi-update
|
||||||
|
|
||||||
|
|
||||||
9
scripts/xlxapi-update.timer
Normal file
9
scripts/xlxapi-update.timer
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue