summaryrefslogtreecommitdiffstats
path: root/modules-available/dnbd3/hooks
diff options
context:
space:
mode:
authorSimon Rettberg2017-10-10 17:40:51 +0200
committerSimon Rettberg2017-10-10 17:40:51 +0200
commit0041e188f7ef4c936eb08f26e08f229e7ce1b550 (patch)
tree52f2cb90e2b44c1325bbc8a65b47b3c088750929 /modules-available/dnbd3/hooks
parent[dnbd3] New module for managing dnbd3 servers - WIP (diff)
downloadslx-admin-0041e188f7ef4c936eb08f26e08f229e7ce1b550.tar.gz
slx-admin-0041e188f7ef4c936eb08f26e08f229e7ce1b550.tar.xz
slx-admin-0041e188f7ef4c936eb08f26e08f229e7ce1b550.zip
[dnbd3] More progress, manage location restrictions for proxies
Diffstat (limited to 'modules-available/dnbd3/hooks')
-rw-r--r--modules-available/dnbd3/hooks/cron.inc.php3
-rw-r--r--modules-available/dnbd3/hooks/runmode/config.json6
2 files changed, 9 insertions, 0 deletions
diff --git a/modules-available/dnbd3/hooks/cron.inc.php b/modules-available/dnbd3/hooks/cron.inc.php
new file mode 100644
index 00000000..3da4cae4
--- /dev/null
+++ b/modules-available/dnbd3/hooks/cron.inc.php
@@ -0,0 +1,3 @@
+<?php
+
+Dnbd3Util::updateServerStatus();
diff --git a/modules-available/dnbd3/hooks/runmode/config.json b/modules-available/dnbd3/hooks/runmode/config.json
new file mode 100644
index 00000000..095cb42f
--- /dev/null
+++ b/modules-available/dnbd3/hooks/runmode/config.json
@@ -0,0 +1,6 @@
+{
+ "isClient": false,
+ "configHook": "Dnbd3Util::runmodeConfigHook",
+ "noSysconfig": true,
+ "systemdDefaultTarget": "dnbd3-proxy"
+} \ No newline at end of file