DOKK / manpages / debian 12 / libelogind-dev-doc / sd_booted.3.en
SD_BOOTED(3) sd_booted SD_BOOTED(3)

sd_booted - Test whether the system is running the elogind init system

#include <elogind/sd-daemon.h>

int sd_booted(void);

sd_booted() checks whether the system was booted up using the elogind init system.

As it makes no sense to use elogind on a system that is using elogind as its init system, this function always returns 0.

elogind(8),

sd-daemon(3)

elogind 246.10