From 1be2084f3b939052c6c013f0b425bee18a7834fe Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 16 Jun 2020 18:29:09 +0200 Subject: snmp: T2321: use restart of start in systemctl For an unknown reason snmpd not always starts after reboot. --- src/conf_mode/snmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/snmp.py') 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") -- cgit v1.2.3