PIDFile not written/missing in tor-0.1.1.5-alpha-cvs

OpenMacNews OpenMacNews at speakeasy.net
Thu Aug 25 05:22:08 UTC 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20050824/298fd6bc/attachment.pgp>


More information about the tor-talk mailing list