mirror of https://github.com/Icinga/icinga2.git
Fix: $prefix/var not created during 'make install', fails on cmd pipe creation
Fixes #3815
This commit is contained in:
parent
412a44e697
commit
b19eedf8ec
29
Makefile.am
29
Makefile.am
|
@ -24,30 +24,11 @@ icinga2doc_DATA = \
|
|||
INSTALL \
|
||||
NEWS
|
||||
|
||||
#log
|
||||
icinga2logdir = ${localstatedir}/log/${PACKAGE}
|
||||
icinga2log_DATA =
|
||||
|
||||
#cache
|
||||
icinga2cachedir = ${localstatedir}/cache/${PACKAGE}
|
||||
icinga2cache_DATA =
|
||||
|
||||
#variablestate
|
||||
icinga2varstatedir = ${localstatedir}/lib/${PACKAGE}
|
||||
icinga2varstate_DATA =
|
||||
|
||||
#run
|
||||
icinga2rundir = ${localstatedir}/run/${PACKAGE}
|
||||
icinga2run_DATA =
|
||||
|
||||
#bin
|
||||
icinga2sbindir = ${sbindir}
|
||||
icinga2sbin_DATA =
|
||||
|
||||
#lib
|
||||
icinga2libdir = ${libdir}/${PACKAGE}
|
||||
icinga2lib_DATA =
|
||||
|
||||
install-data-local:
|
||||
$(MKDIR_P) ${localstatedir}/log/${PACKAGE}
|
||||
$(MKDIR_P) ${localstatedir}/cache/${PACKAGE}
|
||||
$(MKDIR_P) ${localstatedir}/lib/${PACKAGE}
|
||||
$(MKDIR_P) ${localstatedir}/run/${PACKAGE}
|
||||
|
||||
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh icinga2.spec
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ AC_PROG_CXX
|
|||
AC_LANG_CPLUSPLUS
|
||||
AC_PROG_CC
|
||||
AC_LANG_C
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
AC_FUNC_VFORK
|
||||
|
||||
|
|
|
@ -37,6 +37,8 @@ fi
|
|||
|
||||
# Start Icinga 2
|
||||
start() {
|
||||
mkdir -p `dirname -- $ICINGA2_PID_FILE`
|
||||
|
||||
printf "Starting Icinga 2: "
|
||||
$DAEMON -c $ICINGA2_CONFIG_FILE -d
|
||||
echo "Done"
|
||||
|
|
Loading…
Reference in New Issue