Dan Shoop <[email protected]> wrote:

> On Jan 3, 2011, at 5:08 PM, LuKreme wrote:
> 
>> On 3-Jan-2011, at 14:41, Dan Shoop wrote:
>> 
>> 
>>> If it's unloaded, which is what it sounds like you want (rather than 
>>> disabling it, which is a different sort of action) then it should not 
>>> relaunch. It's likely your prior attempt to unload wasn't successful or 
>>> properly performed. 
>> 
>> It WAS unloaded, the unload command is what added the 
> 
> Then it would have not restarted. 
> 
>> <key>Disabled</key>
>> <true/>
>> 
>> to the plist in the first place.
> 
> unload does add this but it alone is not sufficient to disable a launch 
> daemon. RTFM. 

Yep, we ran into a problem recently when trying to turn off a launch daemon 
that ran at reboot. I assumed (wrongly) that adding the "Disabled" key would 
kill it...man launchctl: 

    unload [-w] [-S sessiontype] [-D domain] paths ...
             Unload the specified configuration files or directories of con-
             figuration files.  This will also stop the job if it is running.

             -w       Overrides the Disabled key and sets it to true. In pre-
                      vious versions, this option would modify the configura-
                      tion file. Now the state of the Disabled key is stored
                      elsewhere on-disk.

Don_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to