From owner-freebsd-stable@FreeBSD.ORG Mon Aug 4 14:48:03 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4478CEDA for ; Mon, 4 Aug 2014 14:48:03 +0000 (UTC) Received: from mproxy19.sbb.rs (mproxy19.sbb.rs [89.216.2.104]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.sbb.rs", Issuer "PositiveSSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C458B2887 for ; Mon, 4 Aug 2014 14:48:02 +0000 (UTC) Received: from faust.localdomain (cable-178-148-108-226.dynamic.sbb.rs [178.148.108.226]) by mproxy19.sbb.rs (8.14.4/8.14.4) with ESMTP id s74ElwJx022475 for ; Mon, 4 Aug 2014 16:47:58 +0200 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.6 at SBB mail Received: by faust.localdomain (Postfix, from userid 1001) id 6BB42A41D61; Mon, 4 Aug 2014 16:48:15 +0200 (CEST) Date: Mon, 4 Aug 2014 16:48:15 +0200 From: Zoran Kolic To: freebsd-stable@freebsd.org Subject: Re: tor starting problem Message-ID: <20140804144815.GA954@faust.sbb.rs> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mproxy19.sbb.rs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2014 14:48:03 -0000 > Again, we need error messages. Saying "it doesn't work" is not > useful for troubleshooting. No error message. No error. The boot process just misses tor sh file in /usr/local/etc/rc.d. Here is the script itself. Cannot say if it is correct or not. #!/bin/sh # # $FreeBSD: security/tor/files/tor.in 324351 2013-08-07 12:54:37Z bf $ # # PROVIDE: tor # REQUIRE: NETWORKING SERVERS USR # BEFORE: LOGIN # # Add the following lines to /etc/rc.conf to enable tor. # All these options will overide any settings in your local torrc as # they are command line options. # # tor_enable (bool): Set it to "YES" to enable tor. Default: NO # tor_conf (str): Points to your torrc file. # Default: /usr/local/etc/tor/torrc # tor_user (str): Tor daemon user. Default: _tor # tor_datadir (str): Tor datadir. Default: /var/db/tor # tor_logfile (str): Tor log file. Default: /var/log/tor # tor_loglevel (str): Tor log severity level. Default: notice # . /etc/rc.subr name="tor" rcvar=tor_enable load_rc_config ${name} : ${tor_enable="NO"} : ${tor_conf="/usr/local/etc/tor/torrc"} : ${tor_user="_tor"} : ${tor_pidfile="/var/run/tor/tor.pid"} : ${tor_logfile="/var/log/tor"} : ${tor_loglevel="notice"} : ${tor_datadir="/var/db/tor"} required_files=${tor_conf} required_dirs=${tor_datadir} pidfile=${tor_pidfile} command="/usr/local/bin/${name}" command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir} --+Log ${tor_loglevel}\ file\ ${tor_logfile}" extra_commands="log" log_cmd="${name}_log" tor_log() { cat ${tor_logfile} } run_rc_command "$1" Best regards Zoran