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

Function getServiceBackend

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

Source from the content-addressed store, hash-verified

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

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