1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

configure.ac: add --with-dmeventd-exit-on-path

This commit is contained in:
Zdenek Kabelac 2023-09-25 15:48:06 +02:00
parent 80d34abf49
commit 744cdc3ba8

View File

@ -1686,12 +1686,19 @@ AC_ARG_WITH(dmeventd-path,
[dmeventd path [EPREFIX/sbin/dmeventd]]),
DMEVENTD_PATH=$withval,
DMEVENTD_PATH="$SBINDIR/dmeventd")
AC_ARG_WITH(dmeventd-exit-on-path,
AS_HELP_STRING([--with-dmeventd-exit-on-path=PATH],
[Default path to exit-on file in dmeventd [/run/nologin]]),
DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval,
DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin")
AS_IF([test "$BUILD_DMEVENTD" = "yes"], [
AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE, ["$DMEVENTD_PIDFILE"],
[Path to dmeventd pidfile.])
AC_DEFINE_UNQUOTED(DMEVENTD_PATH, ["$DMEVENTD_PATH"],
[Path to dmeventd binary.])
AC_DEFINE_UNQUOTED(DEFAULT_DMEVENTD_EXIT_ON_PATH, ["$DEFAULT_DMEVENTD_EXIT_ON_PATH"],
[Path to exit-on dmeventd file.])
])
################################################################################
@ -1825,6 +1832,7 @@ AC_SUBST(DEFAULT_ARCHIVE_SUBDIR)
AC_SUBST(DEFAULT_BACKUP_SUBDIR)
AC_SUBST(DEFAULT_CACHE_SUBDIR)
AC_SUBST(DEFAULT_DM_RUN_DIR)
AC_SUBST(DEFAULT_DMEVENTD_EXIT_ON_PATH)
AC_SUBST(DEFAULT_LOCK_DIR)
AC_SUBST(DEFAULT_MIRROR_SEGTYPE)
AC_SUBST(DEFAULT_PID_DIR)