Browse Source

restart agent after timeout reconfig

Mickael-Martin 6 years ago
parent
commit
1b3f6466c9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/upgrade

+ 1 - 0
scripts/upgrade

@@ -107,6 +107,7 @@ fi
 timeout_ok=$(grep -c "^Timeout" /etc/zabbix/zabbix_agentd.conf 2>/dev/null)
 if [ $timeout_ok -ne 1 ] ;then
     ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
+    systemctl enable zabbix-agent && systemctl restart zabbix-agent
 fi    
 
 #=================================================