systemdService

fnSystemdService systemdService(string name) @safe

Gets information about a specific systemd service.

Parameters

nameThe service name (with or without .service suffix).

Returns

SystemdService struct with detailed service information.

Throws

MonacoException if the service doesn't exist or query fails.

Example:

version (linux) {
  auto svc = systemdService("nginx");
  writeln("Status: ", svc.state);
}