Commit 6061d5f8 authored by Till Brehm's avatar Till Brehm

Services were not restarted correctly after install on CentOS 7.

parent c43c293b
......@@ -2302,7 +2302,7 @@ class installer_base {
public function getinitcommand($servicename, $action, $init_script_directory = ''){
global $conf;
// systemd
if(is_executable('/bin/systemd')){
if(is_executable('/bin/systemd') || is_executable('/usr/bin/systemctl')){
return 'systemctl '.$action.' '.$servicename.'.service';
}
// upstart
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment