Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4738

launchd enable/disable on OS X 10.11

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.8.1
    • Fix Version/s: PUP 4.3.0
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      OS X 10.11

    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      On OS X 10.10+, the launchd provider would fail to update the correct plist. On OS X 10.11 this would result in an error when trying to update a service registered in /System because permission is restricted on /System. Fixed so that the launchd provider now updates the correct override plist rather than falling back to attempting to modify the service plist.
      Show
      On OS X 10.10+, the launchd provider would fail to update the correct plist. On OS X 10.11 this would result in an error when trying to update a service registered in /System because permission is restricted on /System. Fixed so that the launchd provider now updates the correct override plist rather than falling back to attempting to modify the service plist.

      Description

      On OS X 10.11, the entire /System folder is write protected by the kernel.

      The launchd provider currently uses both the global overrides plist at /var/db/launchd.db/com.apple.launchd/overrides.plist as well as the Disabled key in the job plists. This works fine for items in /Library/LaunchDaemons and /Library/LaunchAgents, but modifying the job plist is not possible for those in the /System folder.

      This provider should be changed to either use only the global overrides plist or to not modify anything in the system folder.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                keeleysam Samuel Keeley
                QA Contact:
                Eric Thompson
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support