Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 2913 | ); |
| 2914 | |
| 2915 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 2916 | switch (platform) { |
| 2917 | case "darwin": |
| 2918 | return "launchd"; |
| 2919 | case "linux": |
| 2920 | return "systemd --user"; |
| 2921 | case "win32": |
| 2922 | return "Windows Task Scheduler"; |
| 2923 | case "unsupported": |
| 2924 | return "manual setup"; |
| 2925 | } |
| 2926 | }; |
| 2927 | |
| 2928 | const installService = (port: number, commandName: string, boot = false) => |
| 2929 | Effect.gen(function* () { |
Tested by
no test coverage detected