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:
parent
643d52ac5a
commit
2d0192b8a8
@ -130,7 +130,7 @@ configuration variable `StatFile`.
|
||||
FILES
|
||||
-----
|
||||
|
||||
`/etc/tinyproxy/tinyproxy.conf`, `/var/run/tinyproxy.pid`, `/var/log/tinyproxy.log`
|
||||
`/etc/tinyproxy/tinyproxy.conf`, `/var/run/tinyproxy.pid`, `/var/log/tinyproxy/tinyproxy.log`
|
||||
|
||||
BUGS
|
||||
----
|
||||
|
@ -92,7 +92,7 @@ StatFile "@pkgdatadir@/stats.html"
|
||||
# and enable the Syslog directive. These directives are mutually
|
||||
# exclusive.
|
||||
#
|
||||
LogFile "@localstatedir@/log/tinyproxy.log"
|
||||
LogFile "@localstatedir@/log/tinyproxy/tinyproxy.log"
|
||||
|
||||
#
|
||||
# Syslog: Tell tinyproxy to use syslog instead of a logfile. This
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ TINYPROXY_PORT=12321
|
||||
TINYPROXY_USER=$USER
|
||||
TINYPROXY_PID_DIR=$TESTENV_DIR/var/run/tinyproxy
|
||||
TINYPROXY_PID_FILE=$TINYPROXY_PID_DIR/tinyproxy.pid
|
||||
TINYPROXY_LOG_DIR=$LOG_DIR
|
||||
TINYPROXY_LOG_DIR=$LOG_DIR/tinyproxy
|
||||
TINYPROXY_DATA_DIR=$TESTENV_DIR/usr/share/tinyproxy
|
||||
TINYPROXY_CONF_DIR=$TESTENV_DIR/etc/tinyproxy
|
||||
TINYPROXY_CONF_FILE=$TINYPROXY_CONF_DIR/tinyproxy.conf
|
||||
|
Loading…
Reference in New Issue
Block a user