You are not logged in.
Here's the appropriate line from rc.conf, but it will not start unless I enter it manually from the command line. I'm not even sure where else to look or debug, as I've never had any troubles with daemons before this.
DAEMONS=(syslog-ng cpufreq dhcdbd networkmanager tor polipo crond bluetooth cups hal fam alsa)
And as a related but less important question, does anyone know where tor logs are located by default? I tried setting up a relay but could not verify that it worked because I don't know where the logs are kept.
Last edited by fflarex (2008-03-03 03:42:23)
Offline
you can just add tor to /etc/rc.local
Offline
Didn't work... (the line I added was just '/etc/rc.d/tor start')
Any other ideas?
Offline
you have to simply add:
tor
to /etc/rc.local
Offline
Still a no-go...
Offline
cat the tor startup script and run the startup command locally. That should throw any errors to console.
Offline
I'm afraid I don't really know what you mean. Care to give an example?
Anyways, I've found an error when I simply run 'tor' which could be the reason it does not start automatically. This error does not appear when I run 'sudo /etc/rc.d/tor start' (unless it is redirected to the log files instead, which I still haven't found). The error is:
Mar 06 13:17:58.439 [warn] Error setting to configured GID: Operation not permitted
Mar 06 13:17:58.439 [warn] Failed to parse/validate config: Problem with User or Group value. See logs for details.
As far as I can tell, nothing should be wrong at all with the groups and it is all set according to the tor documentation. This is really starting to bother me...
Offline
Mar 06 13:17:58.439 [warn] Error setting to configured GID: Operation not permitted
Mar 06 13:17:58.439 [warn] Failed to parse/validate config: Problem with User or Group value. See logs for details.
This is because a standard user can't switch users. No problem here. what happens when you run 'sudo tor' ?
Offline
try to uncoment and comment this line in /etc/tor/torrc
Log notice file /var/lib/tor/notices.log
#Log notice syslog
now you can see more verbose log at /var/lib/tor/notices.log
Offline
/etc/tor/torrc references:
## Uncomment this to start the process in the background... or use
## --runasdaemon 1 on the command line.
RunAsDaemon 1
User tor
Group tor
I commented out User tor & Group tor
also /var/lib/tor had the following permissions set:
drwx------ 2 43 43 4096 2008-12-18 03:17 tor
after running "chown -R root:root /var/lib/tor" I was able to start tor.
Last edited by az7 (2009-01-31 01:03:19)
Offline