Fix systemd detection logic
This commit is contained in:
parent
916cc35058
commit
b5325f45ff
2
install
2
install
|
@ -156,7 +156,7 @@ function systemInitDetect() {
|
|||
rpm --qf '%{name}\n' -qf $pid_1_path 2>/dev/null ||
|
||||
echo "unknown")
|
||||
verbose "Detected package name for PID=1 process: $pid_1_package"
|
||||
case "${pid_1_package:$pid_1_path}" in
|
||||
case "${pid_1_package}:${pid_1_path}" in
|
||||
*systemd*) has_systemd_init=true; verbose "Detected init system type: systemd" ;;
|
||||
*upstart*) has_upstart_init=true; verbose "Detected init system type: Upstart" ;;
|
||||
*sysvinit*) has_systemv_init=true; verbose "Detected init system type: System V" ;;
|
||||
|
|
Loading…
Reference in New Issue