summaryrefslogtreecommitdiff
path: root/src/conf_mode/snmp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-16 18:29:09 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-16 18:29:13 +0200
commit1be2084f3b939052c6c013f0b425bee18a7834fe (patch)
tree0db686ef2e46f769a461c34ad2698d020ee8d9e8 /src/conf_mode/snmp.py
parent3891799d970f10a111f0a690537e1aa7e28c5deb (diff)
downloadvyos-1x-1be2084f3b939052c6c013f0b425bee18a7834fe.tar.gz
vyos-1x-1be2084f3b939052c6c013f0b425bee18a7834fe.zip
snmp: T2321: use restart of start in systemctl
For an unknown reason snmpd not always starts after reboot.
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-xsrc/conf_mode/snmp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 770d83744..eb0d20654 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -548,7 +548,7 @@ def apply(snmp):
# Reload systemd manager configuration
call('systemctl daemon-reload')
# start SNMP daemon
- call("systemctl start snmpd.service")
+ call("systemctl restart snmpd.service")
while (call('systemctl -q is-active snmpd.service') != 0):
print("service not yet started")