1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

add ynh_systemd_action

This commit is contained in:
yalh76 2019-02-27 18:22:55 +01:00
parent 8ccf728417
commit 0d6d2cc424
4 changed files with 8 additions and 7 deletions

View file

@ -7,6 +7,7 @@
#=================================================
source _common.sh
source ynh_systemd_action
source /usr/share/yunohost/helpers
#=================================================
@ -243,8 +244,7 @@ systemctl reload nginx
#=================================================
ynh_print_info "Reloading OnlyOffice..."
supervisorctl stop all
supervisorctl start all
ynh_systemd_action --service_name=supervisor --action=restart --line_match="INFO success: docservice entered RUNNING state" --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -7,6 +7,7 @@
#=================================================
source _common.sh
source ynh_systemd_action
source /usr/share/yunohost/helpers
#=================================================
@ -28,7 +29,7 @@ final_path=$(ynh_app_setting_get $app final_path)
#=================================================
ynh_print_info "Stopping OnlyOffice"
supervisorctl stop all
ynh_systemd_action --service_name=supervisor --action=stop --log_path="systemd"
#=================================================
# REMOVE THE POSTGRESQL DATABASE

View file

@ -7,6 +7,7 @@
#=================================================
source ../settings/scripts/_common.sh
source ../settings/scripts/ynh_systemd_action
source /usr/share/yunohost/helpers
#=================================================
@ -130,8 +131,7 @@ systemctl reload nginx
#=================================================
ynh_print_info "Reloading OnlyOffice..."
supervisorctl stop all
supervisorctl start all
ynh_systemd_action --service_name=supervisor --action=restart --line_match="INFO success: docservice entered RUNNING state" --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -7,6 +7,7 @@
#=================================================
source _common.sh
source ynh_systemd_action
source /usr/share/yunohost/helpers
#=================================================
@ -146,8 +147,7 @@ systemctl reload nginx
#=================================================
ynh_print_info "Reloading OnlyOffice..."
supervisorctl stop all
supervisorctl start all
ynh_systemd_action --service_name=supervisor --action=restart --line_match="INFO success: docservice entered RUNNING state" --log_path="systemd"
#=================================================
# END OF SCRIPT