blob: e0f6f7e3bdeaafbd8e0d87f0331dd38b79385150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# runtime
RunAsDaemon 1
<%- if scope.lookupvar('tor::daemon::data_dir') != '/var/lib/tor' then -%>
DataDirectory <%= scope.lookupvar('tor::daemon::data_dir') %>
<%- end -%>
# log
<%- if scope.lookupvar('tor::daemon::log_rules') != [] then -%>
<%- for log_rule in scope.lookupvar('tor::daemon::log_rules') -%>
Log <%= log_rule %>
<%- end -%>
<%- else -%>
Log notice syslog
<%- end -%>
<%- if scope.lookupvar('tor::daemon::automap_hosts_on_resolve') != '0' then -%>
AutomapHostsOnResolve <%= scope.lookupvar('tor::daemon::automap_hosts_on_resolve') %>
<%- end -%>
<%- if scope.lookupvar('tor::daemon::use_bridges') != '0' then -%>
UseBridges <%= scope.lookupvar('tor::daemon::use_bridges') %>
<%- end -%>
|