ServiceManagement.h

The main header for the ServiceManagement framework. This header provides support for loading and unloading launchd jobs and reading and manipulating job dictionaries from within an application.

Overview

See the Overview section above for header-level documentation.

Overview

Included Headers

  • <ServiceManagement/SMErrors.h>

  • <ServiceManagement/SMLoginItem.h>

  • <CoreFoundation/CoreFoundation.h>

  • <Security/Authorization.h>

Topics

Examining Jobs

func SMCopyAllJobDictionaries(CFString!) -> Unmanaged<CFArray>!

Copy the job description dictionaries for all jobs in the given domain.

Deprecated
func SMJobCopyDictionary(CFString!, CFString) -> Unmanaged<CFDictionary>!

Copy the job description dictionary for the given job label.

Deprecated

Adding Jobs Securely

Constants

See the Overview section above for header-level documentation.