Переглянути джерело

add restart agent after timeout reconfig

Mickael-Martin 6 роки тому
батько
коміт
5af820fd8e
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      scripts/install

+ 2 - 1
scripts/install

@@ -304,7 +304,8 @@ sed -i "126a DBPassword=$db_pwd"  /etc/zabbix/zabbix_server.conf
 
 
 ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
 ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
 
 
-systemctl enable zabbix-server && systemctl start zabbix-server
+systemctl enable zabbix-agent && systemctl restart zabbix-agent
+systemctl enable zabbix-server && systemctl restart zabbix-server
 
 
 #=================================================
 #=================================================
 # STORE THE CONFIG FILE CHECKSUM
 # STORE THE CONFIG FILE CHECKSUM