Browse Source

Merge pull request #126 from chris5560/master

[packages] tinyproxy: logging problems
sbyx 10 years ago
parent
commit
b9f76a11e4
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      net/tinyproxy/files/tinyproxy.init

+ 5
- 1
net/tinyproxy/files/tinyproxy.init View File

@@ -46,7 +46,7 @@ start_proxy() {
46 46
 	proxy_string "$1" StatFile >> $CFGFILE
47 47
 	proxy_string "$1" LogFile >> $CFGFILE
48 48
 
49
-	proxy_flag "$1" SysLog >> $CFGFILE
49
+	proxy_flag "$1" Syslog >> $CFGFILE
50 50
 
51 51
 	proxy_atom "$1" LogLevel >> $CFGFILE
52 52
 
@@ -111,6 +111,10 @@ proxy_string() {
111 111
 	config_get _value "$SECTION" "$OPTION"
112 112
 	[ -z "$_value" ] && _value="$DEFAULT"
113 113
 	[ -n "$_value" ] && echo "${ALIAS:-${OPTION}} "'"'"$_value"'"'
114
+	[ -n "$_value" -a "$OPTION" = "LogFile" ] && {
115
+		touch $_value
116
+		chmod 666 $_value
117
+	}
114 118
 }
115 119
 
116 120
 proxy_flag() {