summaryrefslogtreecommitdiff
path: root/op-mode-definitions/reverse-proxy.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/reverse-proxy.xml.in')
-rw-r--r--op-mode-definitions/reverse-proxy.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/reverse-proxy.xml.in b/op-mode-definitions/reverse-proxy.xml.in
index 4af24880b..b45ce107f 100644
--- a/op-mode-definitions/reverse-proxy.xml.in
+++ b/op-mode-definitions/reverse-proxy.xml.in
@@ -6,7 +6,7 @@
<properties>
<help>Restart reverse-proxy service</help>
</properties>
- <command>if cli-shell-api existsActive load-balancing reverse-proxy; then sudo systemctl restart haproxy.service; else echo "Reverse-Proxy not configured"; fi</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name reverse_proxy</command>
</node>
</children>
</node>