Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 2853 | ); |
| 2854 | |
| 2855 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 2856 | switch (platform) { |
| 2857 | case "darwin": |
| 2858 | return "launchd"; |
| 2859 | case "linux": |
| 2860 | return "systemd --user"; |
| 2861 | case "win32": |
| 2862 | return "Windows Task Scheduler"; |
| 2863 | case "unsupported": |
| 2864 | return "manual setup"; |
| 2865 | } |
| 2866 | }; |
| 2867 | |
| 2868 | const installService = (port: number, commandName: string, boot = false) => |
| 2869 | Effect.gen(function* () { |
Tested by
no test coverage detected