change the default log file location to "@LOCALSTATEDIR@/log/tinyproxy/tinyproxy.log"

i.e. add a tinyproxy subdirectory.
This is meant to ease running tinyproxy as non-root user
the subdirectory can be used to give the tinyproxy user
write permission.

Michael
This commit is contained in:
Michael Adam committed 2010-03-03 01:06:25 +01:00
1 parent 643d52ac5a
commit 2d0192b8a8
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -326,7 +326,7 @@ static void initialize_config_defaults (struct config_s *conf)
conf->errorpages = NULL;
conf->stathost = safestrdup (TINYPROXY_STATHOST);
conf->idletimeout = MAX_IDLE_TIME;
conf->logf_name = safestrdup (LOCALSTATEDIR "/log/tinyproxy.log");
conf->logf_name = safestrdup (LOCALSTATEDIR "/log/tinyproxy/tinyproxy.log");
conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy.pid");
}