Subject: Re: security/tor
To: None <pkgsrc-users@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: pkgsrc-users
Date: 07/09/2006 10:38:40
--CblX+4bnyfN0pR09
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Jan Danielsson <jan.danielsson@gmail.com> wrote:
=20
> # /etc/rc.d/tor start
>=20
> ..I get:
> -----------
> Jul 09 15:15:42.676 [notice] Tor v0.1.1.21. This is experimental
> software. Do not rely on it for strong anonymity.
> Jul 09 15:15:42.677 [warn] options_init_logs(): Can't log to stdout with
> RunAsDaemon set.
> Jul 09 15:15:42.677 [warn] Failed to parse/validate config: Failed to
> validate Log options. See logs for details.

It seems that the latest version of tor does not start if it does not
have a valid "Log" option in the configuration file.

> # tor
>=20
>    ..which seemed to work.. But why won't it run using /etc/rc.d/tor ?

/etc/rc.d/tor starts tor as a daemon, in which case it can't log to
stderr (which is the default, I think), so it will fail without having a
place to log to.

Adjust /usr/pkg/etc/tor/torrc with a proper Log option and it should
work just fine.

-Jan

--=20
Fate, it seems, is not without a sense of irony.

--CblX+4bnyfN0pR09
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFEsRTwfFtkr68iakwRAie8AKDTcTrvMyAJFtPKqBbQAMoIC0Y4+ACeNwjX
hNdRkXZsbozpfPQ5IWmMiV0=
=balr
-----END PGP SIGNATURE-----

--CblX+4bnyfN0pR09--