summaryrefslogtreecommitdiff
path: root/op-mode-definitions/webproxy.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/webproxy.xml.in')
-rw-r--r--op-mode-definitions/webproxy.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/webproxy.xml.in b/op-mode-definitions/webproxy.xml.in
index 57df44ff8..ba13907b8 100644
--- a/op-mode-definitions/webproxy.xml.in
+++ b/op-mode-definitions/webproxy.xml.in
@@ -34,7 +34,7 @@
<properties>
<help>Restart WebProxy service</help>
</properties>
- <command>if cli-shell-api existsActive service webproxy; then sudo systemctl restart squid.service; else echo "Service WebProxy not configured"; fi</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name webproxy</command>
</node>
</children>
</node>