mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
restart services
This commit is contained in:
parent
562d46756c
commit
13450fb9db
1 changed files with 6 additions and 0 deletions
|
@ -153,6 +153,9 @@ then
|
|||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
yunohost service stop zabbix-server
|
||||
yunohost service stop zabbix-agent
|
||||
|
||||
cp -rp /etc/zabbix /tmp/
|
||||
cp -p /usr/share/zabbix/conf/zabbix.conf.php /tmp/
|
||||
|
||||
|
@ -174,6 +177,9 @@ then
|
|||
yunohost service add zabbix-server -d "Management Zabbix server daemon : Collect, agregate, compute and notify"
|
||||
yunohost service add zabbix-agent -d "Management Zabbix agent daemon : send informations about this host to the server"
|
||||
|
||||
yunohost service start zabbix-server
|
||||
yunohost service start zabbix-agent
|
||||
|
||||
#test if zabbix server is started
|
||||
check_proc_zabbixagent
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue