|
|
|
|
19
|
if(IS_DIRECTORY "${SYSCONF_DIR}/init" AND EXISTS "/lib/init/upstart-job")
|
19
|
if(IS_DIRECTORY "${SYSCONF_DIR}/init" AND EXISTS "/lib/init/upstart-job")
|
20
|
message(STATUS "Detected init flavor: upstart")
|
20
|
message(STATUS "Detected init flavor: upstart")
|
21
|
set(INIT_FLAVOR "upstart" CACHE STRING "Init daemon of this system")
|
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
|
elseif(IS_DIRECTORY "${SYSCONF_DIR}/init.d" AND EXISTS "${SYSCONF_DIR}/init.d/functions")
|
22
|
elseif(IS_DIRECTORY "${SYSCONF_DIR}/init.d" AND EXISTS "${SYSCONF_DIR}/init.d/functions")
|
26
|
message(STATUS "Detected init flavor: sysv-redhat")
|
23
|
message(STATUS "Detected init flavor: sysv-redhat")
|
27
|
set(INIT_FLAVOR "sysv-redhat" CACHE STRING "Init daemon of this system")
|
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
|
else()
|
28
|
else()
|
29
|
message(STATUS "Detected init flavor: none")
|
29
|
message(STATUS "Detected init flavor: none")
|
30
|
message(STATUS "System startup files will not be installed")
|
30
|
message(STATUS "System startup files will not be installed")
|