community/knot-resolver: define error_logger in init script

This commit is contained in:
Jakub Jirutka 2022-05-28 01:06:10 +02:00
parent 3a7ba1b34c
commit 484d4205b4
3 changed files with 10 additions and 6 deletions

View File

@ -146,8 +146,8 @@ _gpgfingerprints="
sha512sums="
180490f058d90d15f336bbce28a175d6660a4a98e88956071f26a40e2b9a14f57eea6b62b992f88011f80acda9418813d53c7f00753c97bcf6b527cf41cc0b8a knot-resolver-5.3.2.tar.xz
31770a21c81f0c0def349b30fa1f66feb191a0958ce9f0fb0f6cd15e0da30898e395a0a4f38921ef89724cbe7424066a0a84c754c64a45c9f6d713247b2c2d8f fix-error-on-cow-filesystem.patch
3df654ade6d8d0f584425090cae038e2ab67e99748f33a936f9401f2ac91b3364a3db34d9b16468a13909530b23665318ab9046e363cf0efd0a9f1e0b4678a96 kresd.confd
7c5ec1c90e90dc5b603cc6ce718ef858ee44aca38100d97d1e346cd74f3f41a0fc9dd2260938741c5c9a880031dc5eee1430d187ca47675fc41ef2c92619197d kresd.initd
1d4a3a16f75a9c2c1a51e5f2a0ec377019a9034208955871fe7922db245d62df522ff2e56336de2ae9d083fcfc41bd2a21546c518837f2abc13e507c2684089b kresd.confd
1078a53f38e10608c7749e1982cb68eba91f14023460e1a6922f958a5d821aaab932ffa7eeb402030213e115d390a85c0acd6494eb6191ab4f66f69c913b3939 kresd.initd
a1e4af78ad8df36feb41619ac63aa8505cb68b434a3e01c8929f69759f5a6abe9667a6d5738928ff67daaccab58e5fecd49ce4ff439674f1e073982042a907fd kres-cache-gc.initd
ad017f54aaa214862a67c8242efe9fa56dc66a8ac0012cc0f4eb981d6fd631b250378602f8f5af9916fff071d9a60d1e588e07458f8d891d19787c3b5d48cdb5 kres-cache-gc.confd
"

View File

@ -6,13 +6,16 @@
# Cache (working) directory.
#cachedir="/var/cache/knot-resolver"
# A process which will be used to log the standard output from the kresd
# process. Default is logger(1) which redirects the output to syslog.
# If you want to disable this, set output_logger="".
# A process which will be used to log the standard (error) output from the
# kresd process. Default is logger(1) which redirects the output to syslog.
# If you want to disable this, set output_logger="" and error_logger="".
#output_logger="logger -t kresd -p daemon.info"
#error_logger="logger -t kresd -p daemon.err"
# Path to the logging file. Default is to use the output_logger instead.
# Path to the logging file. Default is to use the output_logger and
# error_logger instead.
#output_log=
#error_log=
# Uncomment to define soft dependency on kres-cache-gc.
rc_want="kres-cache-gc"

View File

@ -4,6 +4,7 @@
: ${cfgfile:=${config:-"/etc/knot-resolver/kresd.conf"}}
: ${cachedir:="/var/cache/knot-resolver"}
: ${output_logger="logger -t kresd -p daemon.info"}
: ${error_logger="logger -t kresd -p daemon.err"}
: ${wait:=100}
command="/usr/sbin/kresd"