HomePhorge

(#2773) Use launchctl load -w in launchd provider
d5bef5ea4514Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#2773) Use launchctl load -w in launchd provider

There was an issue where a service on OS X would be enabled but also
stopped and the launchd service provider couldn't start it. In this
case, the launchd service provider needed to execute `launchctl load -w
<job_path>` to successfully start the service, but it wasn't programmed
to do so.

To remedy this, the launchd service provider's start method now checks
if the job is disabled OR if the job is currently stopped.

A spec test was added to catch for this unique situation.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfe795377f547: Merge pull request #323 from glarizza/bug/2.7.x/fix_launchd_spec
Branches
Unknown
Tags
Unknown

Event Timeline

Gary Larizza <gary@puppetlabs.com> committed rPUd5bef5ea4514: (#2773) Use launchctl load -w in launchd provider (authored by Gary Larizza <gary@puppetlabs.com>).Jan 10 2012, 10:11 PM