Pages
API Documentation
On this page

Sonic Namespace

Runtime information about the init system and seat manager.

Namespaces

namespace Sonic::InitInfo

Detection reads PID 1's identity and that init's own configuration; it never consults runtime marker files. Nothing is cached, so callers that query repeatedly should keep the result.

In containers and sandboxes PID 1 is the sandbox helper, so Pid1::Unknown, ServiceManager::Unknown and SeatManager::None are normal results that callers must handle.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.