Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2010 20:43:24 GMT
From:      Florian Degner <f.degner@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/143614: Missing files and directories when tor-0.2.1.22 is installed via package (e.g. /var/db/tor)
Message-ID:  <201002062043.o16KhOFF018506@www.freebsd.org>
Resent-Message-ID: <201002062050.o16Ko2Zr062954@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         143614
>Category:       ports
>Synopsis:       Missing files and directories when tor-0.2.1.22 is installed via package (e.g. /var/db/tor)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 06 20:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Florian Degner
>Release:        8.0-STABLE
>Organization:
-
>Environment:
FreeBSD thor.asgard.local 8.0-STABLE FreeBSD 8.0-STABLE #2: Sat Feb  6 02:07:42 CET 2010     root@thor.asgard.local:/usr/obj/usr/src/sys/THOR  amd64
>Description:
Tor - when installed via package - won't start because of missing files and directories:

  # pkg_info -x tor | head -1
  Information for tor-0.2.1.22:
  # /usr/local/etc/rc.d/tor onestart
  /usr/local/etc/rc.d/tor: WARNING: /var/db/tor is not a directory.
  /usr/local/etc/rc.d/tor: WARNING: failed precmd routine for tor
  #


Note: When installed from ports the "post-install" target creates these files/directories.

>How-To-Repeat:
1) Make sure tor is NOT installed and the following files/directories do NOT exist:

  /var/db/tor/
  /var/log/tor
  /var/run/tor/


2) Install the tor package and try to start tor:

  # pkg_add -r tor && /usr/local/etc/rc.d/tor onestart
  #


>Fix:
Install tor from ports or create the files/directories manually:

  # mkdir /var/run/tor
  # chown _tor:_tor /var/run/tor
  # touch /var/log/tor
  # chown _tor:_tor /var/log/tor
  # mkdir /var/db/tor/data
  # chown _tor:_tor /var/db/tor
  #


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002062043.o16KhOFF018506>