Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 2805 | ); |
| 2806 | |
| 2807 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 2808 | switch (platform) { |
| 2809 | case "darwin": |
| 2810 | return "launchd"; |
| 2811 | case "linux": |
| 2812 | return "systemd --user"; |
| 2813 | case "win32": |
| 2814 | return "Windows Task Scheduler"; |
| 2815 | case "unsupported": |
| 2816 | return "manual setup"; |
| 2817 | } |
| 2818 | }; |
| 2819 | |
| 2820 | const installService = (port: number, commandName: string, boot = false) => |
| 2821 | Effect.gen(function* () { |
Tested by
no test coverage detected