summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-03-02 23:36:59 +0100
committerMichael Adam <obnox@samba.org>2010-03-02 23:39:30 +0100
commite87c856487d4b01dfb149fe70c8df79b539e7d3a (patch)
treef52836007d63c725615277644db4608f9a7dfbbc /src
parentcfa5792880a1eb729cb37fd90de1c273dc5c056f (diff)
downloadtinyproxy-e87c856487d4b01dfb149fe70c8df79b539e7d3a.tar.gz
tinyproxy-e87c856487d4b01dfb149fe70c8df79b539e7d3a.zip
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
Diffstat (limited to '')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0190db4..481c311 100644
--- a/src/main.c
+++ b/src/main.c
@@ -346,7 +346,7 @@ static void initialize_config_defaults (struct config_s *conf)
conf->stathost = safestrdup (TINYPROXY_STATHOST);
conf->idletimeout = MAX_IDLE_TIME;
conf->logf_name = safestrdup (LOCALSTATEDIR "/log/tinyproxy/tinyproxy.log");
- conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy.pid");
+ conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy/tinyproxy.pid");
}
/**