Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 2981 | ); |
| 2982 | |
| 2983 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 2984 | switch (platform) { |
| 2985 | case "darwin": |
| 2986 | return "launchd"; |
| 2987 | case "linux": |
| 2988 | return "systemd --user"; |
| 2989 | case "win32": |
| 2990 | return "Windows Task Scheduler"; |
| 2991 | case "unsupported": |
| 2992 | return "manual setup"; |
| 2993 | } |
| 2994 | }; |
| 2995 | |
| 2996 | const installService = (port: number, commandName: string, boot = false) => |
| 2997 | Effect.gen(function* () { |
Tested by
no test coverage detected