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

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 2010-03-02 23:36:59 +01:00
parent cfa5792880
commit e87c856487
3 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ configuration variable `StatFile`.
FILES FILES
----- -----
`/etc/tinyproxy/tinyproxy.conf`, `/var/run/tinyproxy.pid`, `/var/log/tinyproxy/tinyproxy.log` `/etc/tinyproxy/tinyproxy.conf`, `/var/run/tinyproxy/tinyproxy.pid`, `/var/log/tinyproxy/tinyproxy.log`
BUGS BUGS
---- ----

View File

@ -122,7 +122,7 @@ LogLevel Info
# PidFile: Write the PID of the main tinyproxy thread to this file so it # PidFile: Write the PID of the main tinyproxy thread to this file so it
# can be used for signalling purposes. # can be used for signalling purposes.
# #
PidFile "@localstatedir@/run/tinyproxy.pid" PidFile "@localstatedir@/run/tinyproxy/tinyproxy.pid"
# #
# XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which # XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which

View File

@ -346,7 +346,7 @@ static void initialize_config_defaults (struct config_s *conf)
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/tinyproxy.log"); conf->logf_name = safestrdup (LOCALSTATEDIR "/log/tinyproxy/tinyproxy.log");
conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy.pid"); conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy/tinyproxy.pid");
} }
/** /**