Changeset 38135


Ignore:
Timestamp:
2013-09-23T12:14:15+02:00 (4 years ago)
Author:
tripolar
Message:

[packages] tor: use new procd init script style

Signed-off-by: Peter Wagner <tripolar@…>

File:
1 edited

Legend:

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

    r29177 r38135  
    55STOP=50 
    66 
    7 SERVICE_USE_PID=1 
     7USE_PROCD=1 
    88 
    9 start() { 
     9start_service() { 
    1010        user_exists tor 52 || user_add tor 52 52 /var/lib/tor 
    1111        group_exists tor 52 || group_add tor 52 
     
    2323                chown tor:tor /var/log/tor 
    2424        } 
    25         service_start /usr/sbin/tor --PidFile /var/run/tor.pid 
     25        procd_open_instance 
     26        procd_set_param command /usr/sbin/tor --runasdaemon 0 
     27        procd_close_instance 
    2628} 
    27  
    28 stop() { 
    29         service_stop /usr/sbin/tor 
    30 } 
Note: See TracChangeset for help on using the changeset viewer.