diff options
Diffstat (limited to 'package/tinyproxy/files')
-rw-r--r-- | package/tinyproxy/files/tinyproxy.conf | 6 | ||||
-rw-r--r-- | package/tinyproxy/files/tinyproxy.init | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/package/tinyproxy/files/tinyproxy.conf b/package/tinyproxy/files/tinyproxy.conf index 6460a2c88..798231b12 100644 --- a/package/tinyproxy/files/tinyproxy.conf +++ b/package/tinyproxy/files/tinyproxy.conf @@ -64,8 +64,8 @@ StatFile "/usr/share/tinyproxy/stats.html" # Where to log the information. Either LogFile or Syslog should be set, # but not both. # -Logfile "/var/log/tinyproxy.log" -# Syslog On +#Logfile "/var/log/tinyproxy.log" +Syslog On # # Set the logging level. Allowed settings are: @@ -85,7 +85,7 @@ LogLevel Critical # PidFile: Write the PID of the main tinyproxy thread to this file so it # can be used for signalling purposes. # -PidFile "/var/run/tinyproxy.pid" +PidFile "/var/run/tinyproxy/tinyproxy.pid" # # Include the X-Tinyproxy header, which has the client's IP address when diff --git a/package/tinyproxy/files/tinyproxy.init b/package/tinyproxy/files/tinyproxy.init index 46cc6ee5a..e0a8b9a81 100644 --- a/package/tinyproxy/files/tinyproxy.init +++ b/package/tinyproxy/files/tinyproxy.init @@ -11,11 +11,12 @@ autostart) exec sh $0 start ;; start) + mkdir -p /var/run/tinyproxy + chown tinyproxy.tinyproxy /var/run/tinyproxy /usr/sbin/tinyproxy ;; stop) kill $(pgrep -f /usr/sbin/tinyproxy) - rm /var/run/tinyproxy.pid ;; restart) sh $0 stop |