summaryrefslogtreecommitdiff
path: root/op-mode-definitions/suricata.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/suricata.xml.in')
-rw-r--r--op-mode-definitions/suricata.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/suricata.xml.in b/op-mode-definitions/suricata.xml.in
index a5025afba..ff1f84706 100644
--- a/op-mode-definitions/suricata.xml.in
+++ b/op-mode-definitions/suricata.xml.in
@@ -16,7 +16,7 @@
<properties>
<help>Restart Suricata service</help>
</properties>
- <command>if systemctl is-active --quiet suricata; then sudo systemctl restart suricata.service; else echo "Service Suricata not configured"; fi</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name suricata</command>
</node>
</children>
</node>