From 16235b2037af1941b4bb808fde1399692a4eab12 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 29 May 2024 22:47:22 +0200 Subject: op-mode: T5231: add command to restart reverse-proxy (cherry picked from commit 2980eb0ad527f0ef0f1527c0ea97842ca2a8ede5) --- op-mode-definitions/reverse-proxy.xml.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 op-mode-definitions/reverse-proxy.xml.in (limited to 'op-mode-definitions/reverse-proxy.xml.in') diff --git a/op-mode-definitions/reverse-proxy.xml.in b/op-mode-definitions/reverse-proxy.xml.in new file mode 100644 index 000000000..4af24880b --- /dev/null +++ b/op-mode-definitions/reverse-proxy.xml.in @@ -0,0 +1,23 @@ + + + + + + + Restart reverse-proxy service + + if cli-shell-api existsActive load-balancing reverse-proxy; then sudo systemctl restart haproxy.service; else echo "Reverse-Proxy not configured"; fi + + + + + + + + Show load-balancing reverse-proxy + + sudo ${vyos_op_scripts_dir}/reverseproxy.py show + + + + -- cgit v1.2.3