From: Marcin Siodelski Date: Thu, 12 Jun 2014 13:58:13 +0000 (+0200) Subject: [3422] Set logging destination in keactrl script. X-Git-Tag: trac3434_base~6^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e575cd82551769e54bacaef3bf10b4946d05fa5;p=thirdparty%2Fkea.git [3422] Set logging destination in keactrl script. --- diff --git a/src/bin/keactrl/keactrl.in b/src/bin/keactrl/keactrl.in index 520ffef856..c3cb58e13b 100644 --- a/src/bin/keactrl/keactrl.in +++ b/src/bin/keactrl/keactrl.in @@ -103,6 +103,15 @@ as another instance is already running." ### Script starts here ### +# Configure logger to log messages into the file. +# Do not set destination if the B10_LOGGER_DESTINATION is set, +# because a unit test could have set this to some other location. +# @todo Rely on the Kea configuration file once #3427 is done. +if [ -z ${B10_LOGGER_DESTINATION} ]; then + prefix=@prefix@ + export B10_LOGGER_DESTINATION=@localstatedir@/@PACKAGE@/kea.log +fi + command= if [ $# -ne 1 ]; then log_error "No command specified. Use: start, stop, commit or status."