We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f69dc commit 1050bdaCopy full SHA for 1050bda
server/mods-available/web_module.inc.php
@@ -235,6 +235,17 @@ function restartPHP_FPM($action = 'restart') {
235
} else {
236
$path_parts = pathinfo($init_script);
237
$initcommand = $app->system->getinitcommand($path_parts['basename'], $action, $path_parts['dirname']);
238
+
239
+ if($action == 'reload') {
240
+ if(file_exists('/etc/os-release')) {
241
+ $tmp = file_get_contents('/etc/os-release');
242
+ if(preg_match('/^ID=ubuntu/m', $tmp) && preg_match('/^VERSION_ID="14\.04"/m', $tmp)) {
243
+ $initcommand = '/sbin/start-stop-daemon --stop --signal USR2 --quiet --pidfile /var/run/php5-fpm.pid --name php5-fpm';
244
+ }
245
+ unset($tmp);
246
247
248
249
}
250
251
$retval = array('output' => '', 'retval' => 0);
0 commit comments