Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/service/lib/managers/launchd.ts>LaunchdService

Install a Deno application as a system service
Latest
class LaunchdService
import { LaunchdService } from "https://deno.land/x/service@1.0.0-rc.0/lib/managers/launchd.ts";

Methods

Generates a Launchd plist configuration file content as a string based on the given options.

install(config: InstallServiceOptions, onlyGenerate: boolean)
rollback(plistPath: string)

Rolls back any changes made during the launchd service installation process by removing the plist file.

Uninstalls a Launchd service by removing the service configuration file (plist). Checks if the service exists and removes it if found.