aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-12-17 00:27:28 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-12-17 00:28:37 +0100
commit84829ac5ae28dbd6e7cc48c6e6c0d6b1f00a1438 (patch)
tree2eb53fa3a2b6969b5712bfe4edbc864be4bbc90e
parent3807dfeb0f7255503ed182bae8bbcd22b5f31d69 (diff)
downloadaports-84829ac5ae28dbd6e7cc48c6e6c0d6b1f00a1438.tar.bz2
aports-84829ac5ae28dbd6e7cc48c6e6c0d6b1f00a1438.tar.xz
community/kea: log to syslog during startup
See https://kea.readthedocs.io/en/latest/arm/logging.html#logging-during-kea-startup
-rw-r--r--community/kea/APKBUILD4
-rw-r--r--community/kea/kea.initd.in6
2 files changed, 7 insertions, 3 deletions
diff --git a/community/kea/APKBUILD b/community/kea/APKBUILD
index ffb649c152..5ce32d0fef 100644
--- a/community/kea/APKBUILD
+++ b/community/kea/APKBUILD
@@ -3,7 +3,7 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
pkgname=kea
pkgver=1.7.2
-pkgrel=7
+pkgrel=8
pkgdesc="DHCPv4 and DHCPv6 server from ISC"
url="http://kea.isc.org"
# armhf, armv7: limited by log4cplus
@@ -255,4 +255,4 @@ sha512sums="f84bed2e1dacd172c7aed8e4d6c11ec5e79f37ad2c7991963fc9c4a1761668f9f0e1
574b4aacef03c2d4a556b4ff8b152b66efd6fdc27ad09373d41c72df15f8a2cd2386e0bbe7e07f1370d9cd11e0954fc679f3d57e6b647d601cc06e0c63bc8712 use-runstatedir-for-pid-file-location.patch
062e6eb88c49aeeac5d78c37c43cda1ff753e19f833aaa1525e37f66eede819910d4849bd954f3ef8ceb1b13e747953c99e2a9a4d9755b6da8d82c4e08b2b55c put-LOCKFILE_DIR-to-runstatedir.patch
5b93d96f2cbdce327ffceef5ace19ba5327a0c7d0d61714e35a0d72912ecbbec6a1864249612b48f8db20dffc3622170c3e21b1a67297fd834f47b94db85b9d7 kea-admin-remove-builddir.patch
-57bed5c19aeb03218228a0b1244e7036ed80eaacb55e9799c9ba86619662f34c858512212b69b30c11b9b592ff776a82193ccd6fccffb6b3daa016e6d9197528 kea.initd.in"
+f203937f0d216a620f96b6dbcf5027feefdf0f8cd6a40f5a2a7ee11de29e9c9df6578b1cbfd8bfe6bd560f895790636c37f68dfa2e2f1f3d338316ac7033b713 kea.initd.in"
diff --git a/community/kea/kea.initd.in b/community/kea/kea.initd.in
index 7d2b39617a..e789c23ee1 100644
--- a/community/kea/kea.initd.in
+++ b/community/kea/kea.initd.in
@@ -1,6 +1,7 @@
#!/sbin/openrc-run
: ${cfgfile:="/etc/kea/@@NAME@@.conf"}
+: ${logger_dest:="syslog"}
: ${command_user:="kea"}
: ${wait:=100}
@@ -12,7 +13,10 @@ command="/usr/sbin/@@NAME@@"
command_args="-c $cfgfile"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
-start_stop_daemon_args="--wait $wait $start_stop_daemon_args"
+start_stop_daemon_args="
+ --wait $wait
+ --env KEA_LOGGER_DESTINATION=$logger_dest
+ $start_stop_daemon_args"
depend() {
need net