ddn.util.monaco.service
Types 3
structSystemdService
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);
}
}structWindowsService
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 namestring displayNamestring statusstring startTypeint processIdstructLaunchdService
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 labelint pidint lastExitStatusstring[] programArgumentsFunctions 8
fn
SystemdService systemdService(string name) @safeGets information about a specific systemd service.fn
Process[] systemdServiceProcesses(string name) @safeGets all processes belonging to a systemd service.