Browse Source

add check function after update process

Mickael-Martin 7 năm trước cách đây
mục cha
commit
03d8ac7348
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      scripts/upgrade

+ 7 - 1
scripts/upgrade

@@ -155,7 +155,13 @@ then
 	    cp -pf /tmp/zabbix.conf.php /usr/share/zabbix/conf/
 	    
 	    rm -fr /tmp/zabbix*
-	   
+	    
+	    #test if zabbix server is started
+        check_proc_zabbixagent
+        
+        #test if zabbix agent is started
+        check_proc_zabbixserver
+
 	else
 		ynh_print_info "No update from repo ! (Already up to date)"
 	fi