ddn.util.monaco.service

Types 3

Information about a systemd service on Linux.

This struct provides access to systemd service properties including state, substate, main process ID, activation time, and dependencies.

Example:

version (linux) {
  auto services = systemdServices();
  foreach (svc; services) {
     writeln(svc.name, ": ", svc.state);
  }
}

Fields
string name
string state
string subState
int mainPid
SysTime activeEnter
string[] dependencies

Information about a Windows Service.

This struct provides access to Windows service properties including name, display name, status, start type, and associated process ID.

Example:

version (Windows) {
  auto services = windowsServices();
  foreach (svc; services) {
     writeln(svc.displayName, " (", svc.name, "): ", svc.status);
  }
}

Fields
string name
string displayName
string status
string startType
int processId

Information about a launchd service on macOS.

This struct provides access to launchd service properties including label, process ID, last exit status, and program arguments.

Example:

version (OSX) {
  auto services = launchdServices();
  foreach (svc; services) {
     writeln(svc.label, " PID: ", svc.pid);
  }
}

Fields
string label
int pid
int lastExitStatus
string[] programArguments

Functions 8

fnSystemdService[] systemdServices() @safeLists all systemd services on Linux.
fnSystemdService systemdService(string name) @safeGets information about a specific systemd service.
fnProcess[] systemdServiceProcesses(string name) @safeGets all processes belonging to a systemd service.
fnWindowsService[] windowsServices() @trustedLists all Windows Services.
fnLaunchdService[] launchdServices() @safeLists all launchd services on macOS.
fnbool startsWith(string str, string prefix) @safe pure nothrow
fnbool endsWith(string str, string suffix) @safe pure nothrow
fnsize_t wcslen(const(wchar) * s) @trusted pure nothrow