Launchd support removed?
phobos at rootme.org
phobos at rootme.org
Mon Sep 11 23:40:37 UTC 2006
On Sun, Sep 03, 2006 at 12:07:54PM -0400, jay at tamboli.cx wrote 0.5K bytes in 14 lines about:
: I just recently started looking into launchd on OS X, and it looks to
: me like support for using launchd to keep tor running had been added
: and then removed from CVS. Does anyone know why it was removed? Part
I added and removed it from CVS-HEAD. launchd is the
replacement for sys v init. Originally, I implemented launchd
to confirm it was possible with Tor, and as a clean way to move
all command line options into the config file. Tor will work
when started via launchd. launchd will respawn Tor when it
dies. However, launchd would not set resource limits correctly,
particularly the number of open files.
You'll notice through the commit trail I started off by moving
all command line options into the torrc. In the end, I simply tried to
replicate the /Library/StartupItems/Tor/Tor script in launchd,
cmdline options and all. Technically, tor works under launchd.
I was fed up with the light documentation, and when calling
Apple developer support, they merely pointed me at the website.
Their website docs consist of the man pages and two articles.
The outstanding issues were:
1) lack of open file resource limits honored;
2) launchd respawning tor 5 times at system boot up before
launchd realized tor was started.
3) how to update all torrc configs in order to migrate the command line
options.
4) I ran out of time to hack at it more.
Feel free to pick it back up where I left off. I'm happy to
review patches.
--
Andrew
More information about the tor-dev
mailing list