Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Susurs

macrumors 68000
Original poster
Jun 18, 2010
1,609
11,017
Hi!

Could somebody, please advise me on how to correctly manually set timers to force processes to quit when mac is shutting down in macOS Sierra?

Commands below were working in Yosemite but does not work in Sierra (10.12.1):

sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1

sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1

sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1

sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1

sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1
 
Last edited:

Susurs

macrumors 68000
Original poster
Jun 18, 2010
1,609
11,017
This is what I get in the terminal: Could not write domain...
 

Susurs

macrumors 68000
Original poster
Jun 18, 2010
1,609
11,017
Not a programmer, so I am sorry if I say something totally wrong :):)

Maybe some info on the following pages could help to answer my question:

On Launchd: http://www.launchd.info/

The Life Cycle of a Daemon. Terminating processes:
https://developer.apple.com/library...ptual/BPSystemStartup/Chapters/Lifecycle.html

P.S. Here is my com.apple.coreservices.appleid.authentication .plist in /system/Library/LaunchAgents...

< ?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

< plist version="1.0">
< dict>
< key>Label</key>
< string>com.apple.coreservices.appleid.authentication</string>
< key>LimitLoadToSessionType</key>
< array>
< string>Aqua</string>
< string>LoginWindow</string>
< /array>
< key>MachServices</key>
< dict>
< key>com.apple.coreservices.appleid.aps</key>
< true/>
< key>com.apple.coreservices.appleid.authentication</key>
< true/>
< /dict>
< key>POSIXSpawnType</key>
< string>Adaptive</string>
< key>Program</key>
< string>/System/Library/CoreServices/AppleIDAuthAgent</string>
< key>RunAtLoad</key>
< true/>
< /dict>
< /plist>
[doublepost=1481095717][/doublepost]Could I try to manually add ExitTimeOut or this is not the case/not possible anyway?
< key>ExitTimeOut</key>
< integer>500</integer>
 

Susurs

macrumors 68000
Original poster
Jun 18, 2010
1,609
11,017
SIP was the problem! Disabled it and was able to run commands correctly.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.