mirror of https://gitee.com/bigwinds/arangodb
make sure we always have properly defined whether we found systemd or… (#3379)
* make sure we always have properly defined whether we found systemd or not. * fix source file location - we don't pre-process this.
This commit is contained in:
parent
a8ddaf56f6
commit
c901af13c0
|
@ -131,6 +131,9 @@ install(
|
|||
### @brief detect if we're on a systemd enabled system; if install unit file.
|
||||
################################################################################
|
||||
|
||||
set(SYSTEMD_FOUND false)
|
||||
set(IS_SYSTEMD_INSTALL 0)
|
||||
|
||||
if (UNIX)
|
||||
if (${USE_ENTERPRISE})
|
||||
set(SERVICE_NAME "arangodb3e")
|
||||
|
@ -143,7 +146,6 @@ if (UNIX)
|
|||
if(NOT PKG_CONFIG_FOUND)
|
||||
message(STATUS "pkg-config not found - skipping systemd detection")
|
||||
else()
|
||||
set(IS_SYSTEMD_INSTALL 0)
|
||||
set(SYSTEMD_UNIT_DIR "")
|
||||
message(STATUS "detecting systemd")
|
||||
pkg_check_modules(SYSTEMD systemd)
|
||||
|
|
|
@ -104,7 +104,7 @@ else ()
|
|||
|
||||
# deploy the logrotate config:
|
||||
install(
|
||||
FILES ${PROJECT_BINARY_DIR}/arangod.sysv
|
||||
FILES ${PROJECT_SOURCE_DIR}/Installation/logrotate.d/arangod.sysv
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/logrotate.d
|
||||
RENAME ${SERVICE_NAME}
|
||||
|
|
Loading…
Reference in New Issue