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 committed 2010-03-02 23:39:30 +01:00
1 parent cfa5792880
commit e87c856487
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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");
}
/**