Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 2884 | ); |
| 2885 | |
| 2886 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 2887 | switch (platform) { |
| 2888 | case "darwin": |
| 2889 | return "launchd"; |
| 2890 | case "linux": |
| 2891 | return "systemd --user"; |
| 2892 | case "win32": |
| 2893 | return "Windows Task Scheduler"; |
| 2894 | case "unsupported": |
| 2895 | return "manual setup"; |
| 2896 | } |
| 2897 | }; |
| 2898 | |
| 2899 | const installService = (port: number, commandName: string, boot = false) => |
| 2900 | Effect.gen(function* () { |
Tested by
no test coverage detected