import { SystemdService } from "https://deno.land/x/service@1.0.0-beta.6/lib/managers/systemd.ts";
Methods
private
rollback(servicePath: string, system: boolean)Rolls back any changes made during the systemd service installation process by removing the service file.
generateConfig(options: InstallServiceOptions): string
Generates a systemd service configuration file content as a string based on the given options.
install(config: InstallServiceOptions, onlyGenerate: boolean)
Installs a command as a systemd service, checking for existing services with the same name and enabling linger if running in user mode.
uninstall(config: UninstallServiceOptions)
Uninstalls a systemd service by removing the service file. Checks if the service exists and removes it if found.