[opensuse-buildservice] sd_booted() on OBS
Hi, just a question a about the build hosts. Are recent distros regularly booted via systemd? I wonder about the sd_booted() function. From the man page: sd_booted() checks whether the system was booted up using the systemd init system. I checked that on OBS. All distros (openSUSE, Fedora, RHEL, CentOS) return 0 (not systemd booted) except openSUSE_12.3 returns 1. Is this how it should be? cu, Rudi -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mittwoch, 25. März 2015, 17:01:21 wrote Ruediger Meier:
Hi,
just a question a about the build hosts. Are recent distros regularly booted via systemd?
I wonder about the sd_booted() function. From the man page: sd_booted() checks whether the system was booted up using the systemd init system.
I checked that on OBS. All distros (openSUSE, Fedora, RHEL, CentOS) return 0 (not systemd booted) except openSUSE_12.3 returns 1.
Is this how it should be?
yes, all build environments have the build script as PID 1. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On March 25, 2015 6:04:22 PM CET, "Adrian Schröter"
On Mittwoch, 25. März 2015, 17:01:21 wrote Ruediger Meier:
Hi,
just a question a about the build hosts. Are recent distros regularly
booted via systemd?
I wonder about the sd_booted() function. From the man page: sd_booted() checks whether the system was booted up using the systemd init system.
I checked that on OBS. All distros (openSUSE, Fedora, RHEL, CentOS) return 0 (not systemd booted) except openSUSE_12.3 returns 1.
Is this how it should be?
yes, all build environments have the build script as PID 1.
But why not on openSUSE 12.3? Either sd_booted() is broken there or /var/run/systemd/system/ exists although it shouldn't. BTW if build systems are not booted with systemd then we are missing some tests in certain test-suites. cu, Rudi -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adrian Schröter
-
Ruediger Meier
-
Rüdiger Meier