PIDFile not written/missing in tor-0.1.1.5-alpha-cvs
phobos at rootme.org
phobos at rootme.org
Thu Aug 25 12:20:09 UTC 2005
Most likely, it is you. :)
I'm unable to replicate this on 10.4.2 or 10.3.9 with 0.1.0.14. What
user does your tor daemon run as? In OSX, it's _tor by default, if that
doesn't have access to the /var/Process/ directory, it can't write to
it. In your example, is _tor(or whatever user you run it as) a member
of devgrp?
On Wed, Aug 24, 2005 at 10:22:08PM -0700, OpenMacNews at speakeasy.net wrote 2.1K bytes in 81 lines about:
: hi,
:
: thanks 4 the reply =)
:
: >Interesting, change the case of the PIDFile torrc to Pidfile and see if
: >that works.
: >
: >Line 161 of config.c looks for:
: >VAR("PidFile", STRING, PidFile, NULL),
: >
: >not PIDFile. This could be a documentation bug.
:
: ok, let's try some games ...
:
: in each of the following cases for changing tor.conf -->
: PidFile "/var/Process/tor.pid"
: Pidfile "/var/Process/tor.pid"
: pidfile "/var/Process/tor.pid"
:
: i find NO pid file ...
:
: % ls /var/Process/tor.pid
: /usr/local/bin/ls: /var/Process/tor.pid: No such file or directory
:
: checking my syslog, i find in each case:
:
: ...
: Aug 24 21:58:37 devbox Tor: Initialized libevent version 1.1a using method
: poll. Good.
: Aug 24 21:58:37 devbox Tor: write_pidfile(): Unable to open
: "/var/Process/tor.pid" for writing: No such file or directory
: Aug 24 21:58:37 devbox Tor: connection_create_listener(): Opening Socks
: listener on 127.0.0.1:9050
: Aug 24 21:58:37 devbox Tor: connection_create_listener(): Opening Control
: listener on 127.0.0.1:9051
: Aug 24 21:58:43 devbox Tor: Tor has successfully opened a circuit. Looks
: like it's working.
: ...
:
:
: hmmmm. it's running ... but no pid.
:
: looking for write_pidfile() in src/or/config.c ...
:
: ...
: /* Write our pid to the pid file. If we do not have write permissions we
: * will log a warning */
: if (options->PidFile)
: write_pidfile(options->PidFile);
: ...
:
: do i have a perms issue?
:
: % ls -ald /var/Process
: drwxrwxr-x 6 devuser devgrp 204 Aug 24 21:35 /var/Process
:
: shouldn't be :-/
:
: something's odd ... is it me?
:
: cheers,
:
: richard
--
More information about the tor-talk
mailing list