diff options
| author | Curt Brune <[email protected]> | 2017-06-22 13:55:21 -0700 |
|---|---|---|
| committer | Curt Brune <[email protected]> | 2017-06-26 07:58:55 -0700 |
| commit | f159f3268dfadcdd4e30f38a38d00ccc6c5fc63b (patch) | |
| tree | deeafc6b6cbbbc6b8126151ba3700c178a6d92e9 /rootconf/default | |
| parent | 3e654b9dabee8d48b8fa7730e97ae942507fad51 (diff) | |
klogd: add and enable daemon
Start the klogd daemon at boot time, which logs the kernel dmesg
output to /var/log/messages via syslog.
This ensures the dmesg information is logged into /var/log/messages.
Signed-off-by: Curt Brune <[email protected]>
Diffstat (limited to 'rootconf/default')
| -rwxr-xr-x | rootconf/default/etc/init.d/klogd.sh | 30 | ||||
| l--------- | rootconf/default/etc/rc0.d/K85klogd.sh | 1 | ||||
| l--------- | rootconf/default/etc/rc6.d/K85klogd.sh | 1 | ||||
| l--------- | rootconf/default/etc/rcS.d/S25klogd.sh | 1 |
4 files changed, 33 insertions, 0 deletions
diff --git a/rootconf/default/etc/init.d/klogd.sh b/rootconf/default/etc/init.d/klogd.sh new file mode 100755 index 00000000..17e76de6 --- /dev/null +++ b/rootconf/default/etc/init.d/klogd.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# Copyright (C) 2017 Curt Brune <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0 + +cmd="$1" + +daemon="klogd" +ARGS= + +. /lib/onie/functions + +case $cmd in + start) + killall $daemon > /dev/null 2>&1 + log_begin_msg "Starting: $daemon" + $daemon $ARGS + log_end_msg + ;; + + stop) + log_begin_msg "Stopping: $daemon" + killall $daemon > /dev/null 2>&1 + log_end_msg + ;; + + *) + +esac diff --git a/rootconf/default/etc/rc0.d/K85klogd.sh b/rootconf/default/etc/rc0.d/K85klogd.sh new file mode 120000 index 00000000..ffbb4e51 --- /dev/null +++ b/rootconf/default/etc/rc0.d/K85klogd.sh @@ -0,0 +1 @@ +../init.d/klogd.sh
\ No newline at end of file diff --git a/rootconf/default/etc/rc6.d/K85klogd.sh b/rootconf/default/etc/rc6.d/K85klogd.sh new file mode 120000 index 00000000..ffbb4e51 --- /dev/null +++ b/rootconf/default/etc/rc6.d/K85klogd.sh @@ -0,0 +1 @@ +../init.d/klogd.sh
\ No newline at end of file diff --git a/rootconf/default/etc/rcS.d/S25klogd.sh b/rootconf/default/etc/rcS.d/S25klogd.sh new file mode 120000 index 00000000..ffbb4e51 --- /dev/null +++ b/rootconf/default/etc/rcS.d/S25klogd.sh @@ -0,0 +1 @@ +../init.d/klogd.sh
\ No newline at end of file |
