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

Martin Kletzander mkletzan at redhat.com
Fri Apr 29 08:54:33 UTC 2016


On Fri, Apr 29, 2016 at 09:24:19AM +0200, Ján Tomko wrote:
>On Thu, Apr 28, 2016 at 05:54:34PM +0200, Andrea Bolognani wrote:
>> Most distributions, including RHEL, have switched to systemd,
>> so it makes sense for it to be the preferred choice.
>>
>
>>From "preferred choice" I would expect with_init_script=systemd is the
>default, but the patch actually does some checking.
>
>> Our witness for the check is the presence of the /etc/systemd
>> directory on the host.
>
>Very interesting, this directory actually exists on my Open-RC based
>Gentoo system.
>

That's because applications install their startup scripts there.
Usually they install scripts for all init systems so that it works
everywhere.  I don't know where we use this but it seems weird that we
need to know which ones to use.  If we still need to know then I would
expect us to rather check either 'type systemctl' or 'mount -t cgroup |
grep name=systemd' or something like that.

>> ---
>>  configure.ac | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>
>ACK
>
>Jan
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160429/599eb4fc/attachment-0001.sig>


More information about the libvir-list mailing list