Changeset 8532


Ignore:
Timestamp:
2007-08-28T19:09:49+02:00 (9 years ago)
Author:
olli
Message:

tor: fix tor init script (#2279)

Location:
packages/net/tor/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/tor/files/tor.init

    r7164 r8532  
    66DEFAULT=/etc/default/$BIN 
    77LOG_D=/var/log/$BIN 
     8LIB_D=/var/lib/$BIN 
    89RUN_D=/var/run 
    910PID_F=$RUN_D/$BIN.pid 
     11RUN_USER=$BIN 
     12RUN_GROUP=$BIN 
    1013 
    1114start() { 
    1215        [ -f $DEFAULT ] && . $DEFAULT 
    13         mkdir -p $LOG_D 
    14         mkdir -p $RUN_D 
     16        [ -d $LIB_D ] || mkdir -p $LOG_D 
     17        [ -d $LIB_D ] || ( mkdir -p $LIB_D && chown $RUN_USER:$RUN_GROUP $LIB_D ) 
     18        [ -d $RUN_D ] || mkdir -p $RUN_D 
    1519        $BIN $OPTIONS 
    1620} 
  • packages/net/tor/files/torrc

    r1026 r8532  
    6060## The directory for keeping all the keys/etc. By default, we store 
    6161## things in $HOME/.tor on Unix, and in Application Data\tor on Windows. 
    62 #DataDirectory /var/lib/tor 
     62DataDirectory /var/lib/tor 
    6363 
    6464## The port on which Tor will listen for local connections from Tor controller 
Note: See TracChangeset for help on using the changeset viewer.