make log truncation the default
This commit is contained in:
parent
cf9281f1e4
commit
11283fd0da
|
@ -273,21 +273,16 @@ process_m3u = 1
|
||||||
|
|
||||||
scan_type=2
|
scan_type=2
|
||||||
|
|
||||||
#
|
|
||||||
# compress
|
|
||||||
#
|
|
||||||
# Whether to use gzip content-encoding when transferring playlists etc.
|
|
||||||
# This was contributed as a patch by Ciamac Moallemi just prior to the 0.2.1
|
|
||||||
# release, and as such, hasn't gotten as much testing as other features.
|
|
||||||
#
|
|
||||||
# This feature should substantially speed up transfers of large databases
|
|
||||||
# and playlists.
|
|
||||||
#
|
|
||||||
# It will eventually default to 1, but currently it defaults to 0.
|
|
||||||
#
|
|
||||||
|
|
||||||
# compress 0
|
# compress 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Truncate
|
||||||
|
#
|
||||||
|
# should the server truncate the log files on startup.
|
||||||
|
# Defaults to zero
|
||||||
|
truncate = 1
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
plugin_dir = plugins
|
plugin_dir = plugins
|
||||||
plugins = rsp.dll,w32-event.dll
|
plugins = rsp.dll,w32-event.dll
|
||||||
|
|
|
@ -225,6 +225,16 @@ HasConf:
|
||||||
|
|
||||||
ext_skip:
|
ext_skip:
|
||||||
|
|
||||||
|
; Check for truncate
|
||||||
|
ReadINIStr $0 "$2\mt-daapd.conf" "general" "truncate"
|
||||||
|
StrCmp $0 "" trunc_set trunc_skip
|
||||||
|
|
||||||
|
trunc_set:
|
||||||
|
WriteINIStr "$2\mt-daapd.conf" "general" "truncate" "1"
|
||||||
|
|
||||||
|
trunc_skip:
|
||||||
|
|
||||||
|
|
||||||
SetAutoClose False
|
SetAutoClose False
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue