Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 3030 | ); |
| 3031 | |
| 3032 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 3033 | switch (platform) { |
| 3034 | case "darwin": |
| 3035 | return "launchd"; |
| 3036 | case "linux": |
| 3037 | return "systemd --user"; |
| 3038 | case "win32": |
| 3039 | return "Windows Task Scheduler"; |
| 3040 | case "unsupported": |
| 3041 | return "manual setup"; |
| 3042 | } |
| 3043 | }; |
| 3044 | |
| 3045 | const installService = (port: number, commandName: string, boot = false) => |
| 3046 | Effect.gen(function* () { |
Tested by
no test coverage detected