Skip to content
Snippets Groups Projects
Commit 1050bda1 authored by Marius Cramer's avatar Marius Cramer
Browse files

- implemented fix for Ubuntu 14.04 with fpm pool reload handling

parent 96f69dcc
No related branches found
No related tags found
No related merge requests found
...@@ -235,6 +235,17 @@ class web_module { ...@@ -235,6 +235,17 @@ class web_module {
} else { } else {
$path_parts = pathinfo($init_script); $path_parts = pathinfo($init_script);
$initcommand = $app->system->getinitcommand($path_parts['basename'], $action, $path_parts['dirname']); $initcommand = $app->system->getinitcommand($path_parts['basename'], $action, $path_parts['dirname']);
if($action == 'reload') {
if(file_exists('/etc/os-release')) {
$tmp = file_get_contents('/etc/os-release');
if(preg_match('/^ID=ubuntu/m', $tmp) && preg_match('/^VERSION_ID="14\.04"/m', $tmp)) {
$initcommand = '/sbin/start-stop-daemon --stop --signal USR2 --quiet --pidfile /var/run/php5-fpm.pid --name php5-fpm';
}
unset($tmp);
}
}
} }
$retval = array('output' => '', 'retval' => 0); $retval = array('output' => '', 'retval' => 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment