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:
		
							parent
							
								
									2d0192b8a8
								
							
						
					
					
						commit
						e6cbaf7b6e
					
				@ -130,7 +130,7 @@ configuration variable `StatFile`.
 | 
			
		||||
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
 | 
			
		||||
----
 | 
			
		||||
 | 
			
		||||
@ -122,7 +122,7 @@ LogLevel Info
 | 
			
		||||
# PidFile: Write the PID of the main tinyproxy thread to this file so it
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
@ -327,7 +327,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");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user