MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / launchctlUnload

Function launchctlUnload

apps/cli/src/daemon/service.ts:123–133  ·  view source on GitHub ↗
(plistPath: string)

Source from the content-addressed store, hash-verified

121}
122
123function launchctlUnload(plistPath: string): void {
124 try {
125 execSync(`launchctl bootout gui/${getUid()}/${SERVICE_LABEL}`, { stdio: 'pipe' })
126 } catch {
127 try {
128 execSync(`launchctl unload "${plistPath}"`, { stdio: 'pipe' })
129 } catch {
130 // already unloaded, ignore
131 }
132 }
133}
134
135function installMacos(options: ServiceInstallOptions): void {
136 fs.mkdirSync(path.dirname(PLIST_PATH), { recursive: true })

Callers 2

installMacosFunction · 0.85
uninstallMacosFunction · 0.85

Calls 1

getUidFunction · 0.85

Tested by

no test coverage detected