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
f640c6fbb1
commit
cfa5792880
@ -130,7 +130,7 @@ configuration variable `StatFile`.
|
|||||||
FILES
|
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
|
BUGS
|
||||||
----
|
----
|
||||||
|
@ -92,7 +92,7 @@ StatFile "@pkgdatadir@/stats.html"
|
|||||||
# and enable the Syslog directive. These directives are mutually
|
# and enable the Syslog directive. These directives are mutually
|
||||||
# exclusive.
|
# exclusive.
|
||||||
#
|
#
|
||||||
LogFile "@localstatedir@/log/tinyproxy.log"
|
LogFile "@localstatedir@/log/tinyproxy/tinyproxy.log"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Syslog: Tell tinyproxy to use syslog instead of a logfile. This
|
# Syslog: Tell tinyproxy to use syslog instead of a logfile. This
|
||||||
|
@ -345,7 +345,7 @@ static void initialize_config_defaults (struct config_s *conf)
|
|||||||
conf->errorpages = NULL;
|
conf->errorpages = NULL;
|
||||||
conf->stathost = safestrdup (TINYPROXY_STATHOST);
|
conf->stathost = safestrdup (TINYPROXY_STATHOST);
|
||||||
conf->idletimeout = MAX_IDLE_TIME;
|
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");
|
conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy.pid");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ TINYPROXY_PORT=12321
|
|||||||
TINYPROXY_USER=$USER
|
TINYPROXY_USER=$USER
|
||||||
TINYPROXY_PID_DIR=$TESTENV_DIR/var/run/tinyproxy
|
TINYPROXY_PID_DIR=$TESTENV_DIR/var/run/tinyproxy
|
||||||
TINYPROXY_PID_FILE=$TINYPROXY_PID_DIR/tinyproxy.pid
|
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_DATA_DIR=$TESTENV_DIR/usr/share/tinyproxy
|
||||||
TINYPROXY_CONF_DIR=$TESTENV_DIR/etc/tinyproxy
|
TINYPROXY_CONF_DIR=$TESTENV_DIR/etc/tinyproxy
|
||||||
TINYPROXY_CONF_FILE=$TINYPROXY_CONF_DIR/tinyproxy.conf
|
TINYPROXY_CONF_FILE=$TINYPROXY_CONF_DIR/tinyproxy.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user