Date: Tue, 23 Dec 2008 01:32:43 +0530 From: wahjava.ml@gmail.com (Ashish Shukla =?utf-8?B?4KSG4KS24KWA4KS3IA==?= =?utf-8?B?4KS24KWB4KSV4KWN4KSy?=) To: FreeBSD Ports Mailing List <freebsd-ports@freebsd.org> Subject: Unable to start tor service from recent tor-devel port Message-ID: <86k59sou58.fsf@chateau.d.lf>
next in thread | raw e-mail | index | archive | help
--=-=-= Content-Transfer-Encoding: quoted-printable Hi all, I'm having this issue with the recently upgraded security/tor-devel (upgraded to tor-devel-0.2.1.7.a) port. I'm unable to start the tor service using its rc.d script. ,---- | % sudo /usr/local/etc/rc.d/tor start | Password: | Starting tor. | Dec 23 01:18:42.779 [notice] Tor v0.2.1.7-alpha (r17216). This is experim= ental software. Do not rely on it for strong anonymity. (Running on FreeBSD= amd64) | Dec 23 01:18:42.784 [notice] Initialized libevent version 1.4.8-stable us= ing method kqueue. Good. | Dec 23 01:18:42.784 [notice] Opening OR listener on 0.0.0.0:9001 | Dec 23 01:18:42.784 [notice] Opening Directory listener on 0.0.0.0:9030 | Dec 23 01:18:42.785 [notice] Opening Socks listener on 127.0.0.1:9050 | Dec 23 01:18:42.785 [notice] Opening Socks listener on 172.16.0.2:9050 | Dec 23 01:18:42.787 [warn] Error setting configured groups: Operation not= permitted | Dec 23 01:18:42.788 [warn] Failed to parse/validate config: Problem with = User value. See logs for details. | Dec 23 01:18:42.788 [err] Reading config failed--see warnings above. | % uname -a | FreeBSD chateau.d.lf 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #7: Sat Nov 1= 06:58:27 IST 2008 root@chateau.d.lf:/usr/obj/usr/src/sys/ULE amd64 `---- It seems in above rc script, there is a transition to "_tor" uid happens before the execution and hence this error. Following is the fix to this issue: ,---- | abbe [~] chateau% diff -u /usr/local/etc/rc.d/tor{,2} | --- /usr/local/etc/rc.d/tor 2008-12-23 00:27:35.000000000 +0530 | +++ /usr/local/etc/rc.d/tor2 2008-12-23 01:27:48.000000000 +0530 | @@ -40,10 +40,15 @@ | command_args=3D"-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 = --DataDirectory ${tor_datadir} --User ${tor_user} --Log notice\ file\ ${tor= _logfile}" | extra_commands=3D"log" | log_cmd=3D"${name}_log" | +start_cmd=3D"${name}_start" |=20=20 | tor_log() { | cat ${tor_logfile} | } |=20=20 | +tor_start() { | + _run_rc_doit $command $command_args | +} | + | run_rc_command "$1" `---- So, can some tell me if this is the good fix. I will submit a PR. Thanks =2D-=20 Ashish Shukla --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklP8mYACgkQHy+EEHYuXnRGegCgzluI+gu0b+JUfs22oJ3cm6K2 ZhIAoL+S+AosGFxLH5VYVXK48Gl7K73K =HeVH -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k59sou58.fsf>