Most distributions, including RHEL, have switched to systemd,
so it makes sense for it to be the preferred choice.
Our witness for the check is the presence of the /etc/systemd
directory on the host.
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 4b92e85..6c7afb1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -651,6 +651,11 @@ case "$with_init_script" in
then
with_init_script=none
fi
+ if test "$with_init_script" = check && test -d /etc/systemd
+ then
+ init_systemd=yes
+ with_init_script=systemd
+ fi
if test "$with_init_script" = check && test -f
/etc/redhat-release
then
init_redhat=yes
--
2.5.5