blob: c29b76b53cd97e0f99181f85e8a88ec6bac9be21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# runtime
RunAsDaemon 1
<% if (v=scope.lookupvar('tor::daemon::data_dir')) != '/var/lib/tor' -%>
DataDirectory <%= v %>
<% end -%>
# log
<% if (rules=scope.lookupvar('tor::daemon::log_rules')).empty? -%>
Log notice syslog
<% else -%>
<% Array(rules).each do |log_rule| -%>
Log <%= log_rule %>
<% end -%>
<% end -%>
<%- if (v=scope.lookupvar('tor::daemon::safe_logging')) != '1' then -%>
SafeLogging <%= v %>
<%- end -%>
<% if (v=scope.lookupvar('tor::daemon::automap_hosts_on_resolve')) != '0' -%>
AutomapHostsOnResolve <%= v %>
<% end -%>
<% if (v=scope.lookupvar('tor::daemon::use_bridges')) != '0' -%>
UseBridges <%= v %>
<%- end -%>
|