User:Johannbg/QA/Systemd/Sd booted

Name
sd_booted — Test whether the system is running the systemd init system.

Synopsis
int sd_booted(	void);
 * 1) include "sd-daemon.h"

Description
sd_booted checks whether the system was booted up using the systemd init system.

Return Value
On failure, this call returns a negative errno-style error code. If the system was booted up with systemd as init system, this call returns a positive return value, zero otherwise.