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

SMCopyAllJobDictionaries

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

Deprecated
SMJobCopyDictionary

Copy the job description dictionary for the given job label.

Deprecated
SMJobRemove

Removes the job with the given label from the specified domain.

Deprecated
SMJobSubmit

Submits the given job to the specified domain.

Deprecated

Adding Jobs Securely

SMJobBless

Submits the executable for the given label as a launchd job.

Constants

See the Overview section above for header-level documentation.