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

Function getServiceBackend

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

Source from the content-addressed store, hash-verified

970
971/** Select the service backend for the current OS. */
972export const getServiceBackend = (platform: NodeJS.Platform = process.platform): ServiceBackend => {
973 switch (platform) {
974 case "darwin":
975 return makeLaunchdBackend();
976 case "linux":
977 return makeSystemdBackend();
978 case "win32":
979 return makeWindowsBackend();
980 default:
981 return makeUnsupportedBackend();
982 }
983};

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