Ignore:
Timestamp:
2011-11-16T10:44:20+01:00 (4 years ago)
Author:
nico
Message:

packages/tor{,-alpha}: use a fixed predictable pid-file location (patch from Peter Wagner), remove PidFile config entry

File:
1 edited

Legend:

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

    r28902 r29177  
    33 
    44START=50 
     5STOP=50 
    56 
    6 SERVICE_PID_FILE=/var/run/tor/tor.pid 
     7SERVICE_USE_PID=1 
    78 
    89start() { 
    9         user_exists tor 52 || user_add tor 52 
     10        user_exists tor 52 || user_add tor 52 52 /var/lib/tor 
    1011        group_exists tor 52 || group_add tor 52 
    11         [ -d /var/run/tor ] || { 
    12                 mkdir -m 0755 -p /var/run/tor 
    13                 chown tor:tor /var/run/tor 
     12        [ -f /var/run/tor.pid ] || { 
     13                touch /var/run/tor.pid 
     14                chown tor:tor /var/run/tor.pid 
    1415        } 
    1516        [ -d /var/lib/tor ] || { 
     
    2223                chown tor:tor /var/log/tor 
    2324        } 
    24         service_start /usr/sbin/tor 
     25        service_start /usr/sbin/tor --PidFile /var/run/tor.pid 
    2526} 
    2627 
Note: See TracChangeset for help on using the changeset viewer.