summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-snmp.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-18 10:27:07 +0200
committerGitHub <noreply@github.com>2024-07-18 10:27:07 +0200
commit360a3a73b6d5e9a238ab4ba86879b1c27fa86104 (patch)
tree2dce59ca4d9bc1b396dd87e4260aed1581f77575 /op-mode-definitions/restart-snmp.xml.in
parent95d345c6600aa83abd6d3138ab5ef49abb73b0f3 (diff)
parentf773368df7c5eb40a8c6334ebbed2de88bdb21af (diff)
downloadvyos-1x-360a3a73b6d5e9a238ab4ba86879b1c27fa86104.tar.gz
vyos-1x-360a3a73b6d5e9a238ab4ba86879b1c27fa86104.zip
Merge pull request #3819 from vyos/mergify/bp/circinus/pr-3817
op-mode: T6577: create generic service restart helper to work with the API (backport #3817)
Diffstat (limited to 'op-mode-definitions/restart-snmp.xml.in')
-rw-r--r--op-mode-definitions/restart-snmp.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/restart-snmp.xml.in b/op-mode-definitions/restart-snmp.xml.in
index 7de27df64..e9c43de01 100644
--- a/op-mode-definitions/restart-snmp.xml.in
+++ b/op-mode-definitions/restart-snmp.xml.in
@@ -6,7 +6,7 @@
<properties>
<help>Restart SNMP service</help>
</properties>
- <command>if cli-shell-api existsActive service snmp; then sudo systemctl restart snmpd.service; else echo "Service SNMP not configured"; fi</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name snmp</command>
</node>
</children>
</node>