Add ynh_systemd_action Helper

This commit is contained in:
yalh76
2019-02-01 22:11:47 +01:00
parent f616653ec4
commit f02a3a54e5
6 changed files with 123 additions and 8 deletions

View File

@@ -7,6 +7,7 @@
#=================================================
source _common.sh
source ynh_systemd_action
source /usr/share/yunohost/helpers
#=================================================
@@ -15,7 +16,7 @@ source /usr/share/yunohost/helpers
ynh_clean_setup () {
### Remove this function if there's nothing to clean before calling the remove script.
true
ynh_clean_check_starting
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
@@ -317,6 +318,11 @@ fi
#=================================================
# RELOAD NGINX
#=================================================
systemctl start $app
systemctl reload nginx
sleep 30
#=================================================
# START SERVICE
#=================================================
ynh_systemd_action --action=start --service_name=$app