From 11a4afea04bcd00584160e4aa1159590d544b752 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Tue, 5 Jan 2016 09:12:42 +0100 Subject: [PATCH] Use reload for php-fpm instead of restart This is to avoid stopping other apps while doing a z-push_ynh install or update. --- scripts/install | 2 +- scripts/remove | 2 +- scripts/upgrade | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 73cbc7e..2b1e248 100644 --- a/scripts/install +++ b/scripts/install @@ -89,6 +89,6 @@ sudo chmod 644 $finalphpconf sudo yunohost app setting $app skipped_uris -v "/" # Reload Nginx and regenerate SSOwat conf -sudo service php5-fpm restart +sudo service php5-fpm reload sudo service nginx reload sudo yunohost app ssowatconf diff --git a/scripts/remove b/scripts/remove index 565bd5d..1870c46 100644 --- a/scripts/remove +++ b/scripts/remove @@ -10,6 +10,6 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo rm -f /etc/php5/fpm/pool.d/$app.conf # Restart of services -sudo service php5-fpm restart +sudo service php5-fpm reload sudo service nginx reload sudo yunohost app ssowatconf diff --git a/scripts/upgrade b/scripts/upgrade index 8c2fe97..000757c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -90,8 +90,6 @@ sudo yunohost app setting $app skipped_uris -v "/" # Restart of services -sudo service php5-fpm restart +sudo service php5-fpm reload sudo service nginx reload sudo yunohost app ssowatconf - -