systemdServiceProcesses

fnProcess[] systemdServiceProcesses(string name) @safe

Gets all processes belonging to a systemd service.

Parameters

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

Returns

Array of Process objects for the service's processes.

Throws

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

Example:

version (linux) {
  auto procs = systemdServiceProcesses("nginx");
  writeln("Found ", procs.length, " nginx processes");
}