Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Preferred directories for system daemon

I'm developing a small utility that will install a system daemon. I have already written code for a privileged helper tool that my utility uses, and installed the necessary launchd plists to run the daemon. Thats all working well.


This daemon is ported from Linux and needs to maintain files in several system directories, being


  1. Software installation - defaults to /usr/local/sbin, /usr/local/bin
  2. Configuration file(s) - On Linux, subdirectory of /etc
  3. Logging - On Linux uses a subdirectory of /var/log
  4. Current state - On Linux, subdirectory of /var/lib
  5. Unix domain sockets - On Linux, subdirectory of /var/run


What would be the best (i.e. long term) locations for equivalent directories on OSX? I have read that Apple are locking down access to the 'usual' system directories and don't want to be caught trying to install to directories that require unusual actions to be performed by the user (i.e having to resort to commands in Terminal) to circumvent restrictions.


Regards

Bryan Christianson

iMac, Mac OS X (10.6.6)

Posted on Jul 29, 2015 1:58 PM

Reply

There are no replies.

Preferred directories for system daemon

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.