[PATCH 2/2] configure: Add systemd detection to --with-init-script=check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]