Remove the EVENT_NOEPOLL block from etc/default/tor.
[tor.git] / patches / 07_log_to_file_by_default.dpatch
blobe0c5e4a34690a57984cd3582e5445580f88dd03c
1 #! /bin/sh -e
2 ## 07_log_to_file_by_default.dpatch by <weasel@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
7 if [ $# -lt 1 ]; then
8 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
9 exit 1
12 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
15 case "$1" in
16 -patch) patch -p1 ${patch_opts} < $0;;
17 -unpatch) patch -R -p1 ${patch_opts} < $0;;
19 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
20 exit 1;;
21 esac
23 exit 0
25 @DPATCH@
26 diff -urNad tor-0.1.1.5/src/or/config.c /tmp/dpep.YwfNhI/tor-0.1.1.5/src/or/config.c
27 --- tor-0.1.1.5/src/or/config.c
28 +++ /tmp/dpep.YwfNhI/tor-0.1.1.5/src/or/config.c
29 @@ -1548,7 +1548,7 @@
31 /* Special case if no options are given. */
32 if (!options->Logs) {
33 - config_line_append(&options->Logs, "Log", "notice stdout");
34 + config_line_append(&options->Logs, "Log", "notice file /var/log/tor/log");
37 if (options_init_logs(options, 1)<0) /* Validate the log(s) */