Skip to content

Commit 6061d5f

Browse files
author
Till Brehm
committed
Services were not restarted correctly after install on CentOS 7.
1 parent c43c293 commit 6061d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ public function cleanup_ispconfig() {
23022302
public function getinitcommand($servicename, $action, $init_script_directory = ''){
23032303
global $conf;
23042304
// systemd
2305-
if(is_executable('/bin/systemd')){
2305+
if(is_executable('/bin/systemd') || is_executable('/usr/bin/systemctl')){
23062306
return 'systemctl '.$action.' '.$servicename.'.service';
23072307
}
23082308
// upstart

0 commit comments

Comments
 (0)