MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / getServiceBackend

Function getServiceBackend

apps/cli/src/service.ts:965–976  ·  view source on GitHub ↗
(platform: NodeJS.Platform = process.platform)

Source from the content-addressed store, hash-verified

963
964/** Select the service backend for the current OS. */
965export const getServiceBackend = (platform: NodeJS.Platform = process.platform): ServiceBackend => {
966 switch (platform) {
967 case "darwin":
968 return makeLaunchdBackend();
969 case "linux":
970 return makeSystemdBackend();
971 case "win32":
972 return makeWindowsBackend();
973 default:
974 return makeUnsupportedBackend();
975 }
976};

Callers 3

service.test.tsFile · 0.90
installServiceFunction · 0.90
main.tsFile · 0.90

Calls 4

makeLaunchdBackendFunction · 0.85
makeSystemdBackendFunction · 0.85
makeWindowsBackendFunction · 0.85
makeUnsupportedBackendFunction · 0.85

Tested by

no test coverage detected