From 6d6643de2b6fc47b15e27c46266f22866c1cd1a8 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Wed, 24 Sep 2014 09:47:20 -0400 Subject: [PATCH] Fixed service restart problems on CentOS 7. --- server/lib/classes/system.inc.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/lib/classes/system.inc.php b/server/lib/classes/system.inc.php index af42e5e..d227792 100644 --- a/server/lib/classes/system.inc.php +++ b/server/lib/classes/system.inc.php @@ -1722,7 +1722,7 @@ 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 -- Gitblit v1.9.1