Mac OS X
Q: launchd/launchctl disabled key and list option
Hi Community,
what does the disabled key, stored in a launchd plist file or in SL stored in /var/db/launchd.db/com.apple.launchd/overrides.plist, exactly means? It seems that a job run even if the disabled key is set to true or 1.
And if the disabled key is set, I've to load/unload the script by using launchctl explicit with the -w option but the state of the disabled key doesn't change but the script is active if load is used or rather inactive if unload is used.
Another question is why a scheduled task, launched by launchd, isn't displayed with 'launchctl list' even though my script is loaded successful with 'launchctl load'
Thx in advance & Bye Tom
what does the disabled key, stored in a launchd plist file or in SL stored in /var/db/launchd.db/com.apple.launchd/overrides.plist, exactly means? It seems that a job run even if the disabled key is set to true or 1.
And if the disabled key is set, I've to load/unload the script by using launchctl explicit with the -w option but the state of the disabled key doesn't change but the script is active if load is used or rather inactive if unload is used.
Another question is why a scheduled task, launched by launchd, isn't displayed with 'launchctl list' even though my script is loaded successful with 'launchctl load'
Thx in advance & Bye Tom
2009 MacPro; 2010 MacBookPro; 2009 MacMini; iPhone; iPod; iWhatEver, Mac OS X (10.6.4)
Posted on Nov 2, 2010 2:10 PM
by Linc Davis,Solvedanswer
Applications
If there's a Disabled key in overrides.plist and you reverse it with "launchctl load -w ...", the key is not deleted; its value changes from "true" to "false." If you want to delete it, you have to edit the file directly.
Posted on Nov 3, 2010 11:20 AM