|
@@ -19,12 +19,12 @@ if(NOT DEFINED INIT_FLAVOR)
|
19
|
19
|
if(IS_DIRECTORY "${SYSCONF_DIR}/init" AND EXISTS "/lib/init/upstart-job")
|
20
|
20
|
message(STATUS "Detected init flavor: upstart")
|
21
|
21
|
set(INIT_FLAVOR "upstart" CACHE STRING "Init daemon of this system")
|
22
|
|
- elseif(IS_DIRECTORY "${SYSCONF_DIR}/init.d" AND EXISTS "/lib/lsb/init-functions")
|
23
|
|
- message(STATUS "Detected init flavor: sysv-lsb")
|
24
|
|
- set(INIT_FLAVOR "sysv-lsb" CACHE STRING "Init daemon of this system")
|
25
|
22
|
elseif(IS_DIRECTORY "${SYSCONF_DIR}/init.d" AND EXISTS "${SYSCONF_DIR}/init.d/functions")
|
26
|
23
|
message(STATUS "Detected init flavor: sysv-redhat")
|
27
|
24
|
set(INIT_FLAVOR "sysv-redhat" CACHE STRING "Init daemon of this system")
|
|
25
|
+ elseif(IS_DIRECTORY "${SYSCONF_DIR}/init.d" AND EXISTS "/lib/lsb/init-functions")
|
|
26
|
+ message(STATUS "Detected init flavor: sysv-lsb")
|
|
27
|
+ set(INIT_FLAVOR "sysv-lsb" CACHE STRING "Init daemon of this system")
|
28
|
28
|
else()
|
29
|
29
|
message(STATUS "Detected init flavor: none")
|
30
|
30
|
message(STATUS "System startup files will not be installed")
|