aboutsummaryrefslogtreecommitdiffstats
path: root/community/kea/kea.initd.in
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 /community/kea/kea.initd.in
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
Diffstat (limited to 'community/kea/kea.initd.in')
-rw-r--r--community/kea/kea.initd.in6
1 files changed, 5 insertions, 1 deletions
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