Skip navigation.
 
mlLaunch Daemon Best Practices?
FROM : Karl Moskowski
DATE : Tue Mar 11 23:30:00 2008

I'm working on a utility that has to be running even if no one is 
logged in. A bit of research leads me to think I should implement it 
as a launch daemon, with a separate configuration UI.

Am I on the right track, or is there a better approach? Any pointers 
to sample code?

I assume I'm going to have to get the GUI to write settings to /
Library/Preferences/, and notify the daemon of to reload changes via 
distributed objects. Is it possible to get NSUserDefaults to write 
there (instead of ~/Library/Preferences/)?

Thanks.

--Karl.

Related mailsAuthorDate
mlLaunch Daemon Best Practices? Karl Moskowski Mar 11, 23:30
mlRe: Launch Daemon Best Practices? Hamish Allan Mar 12, 00:05
mlRe: Launch Daemon Best Practices? Karl Moskowski Mar 12, 00:16
mlRe: Launch Daemon Best Practices? Hamish Allan Mar 12, 00:34
mlRe: Launch Daemon Best Practices? Chris Suter Mar 12, 01:18
mlRe: Launch Daemon Best Practices? Hamish Allan Mar 12, 01:44
mlRe: Launch Daemon Best Practices? Karl Moskowski Mar 12, 02:39
mlRe: Launch Daemon Best Practices? Chris Suter Mar 12, 03:14