summaryrefslogtreecommitdiff
path: root/beagle/debian-rfs/etc/init.d/bootlogd
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2013-03-10 12:13:49 +0100
committerManuel Traut <manut@mecka.net>2013-03-10 12:13:49 +0100
commit9c0f862749f30800837a45aff5abdcb529867dbc (patch)
treeb0ca51fff64f12fac03aea4afaa1fa722376844b /beagle/debian-rfs/etc/init.d/bootlogd
parent33b79c725448efd2c9a72e2ae9a1fb04270492f5 (diff)
parentcea5039322781f6085dd47954af5584ca3f78911 (diff)
Merge branch 'schulung'
updates from current linutronix schulung.git Conflicts: Makefile configpres.tex flash-memory/ubi/handout_ubi_de.tex handout.tex index.txt pres_master.tex vorl.tex vorl1.tex vorl2.tex vorl3.tex vorl4.tex vorl5.tex Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/etc/init.d/bootlogd')
-rwxr-xr-xbeagle/debian-rfs/etc/init.d/bootlogd96
1 files changed, 0 insertions, 96 deletions
diff --git a/beagle/debian-rfs/etc/init.d/bootlogd b/beagle/debian-rfs/etc/init.d/bootlogd
deleted file mode 100755
index b688796..0000000
--- a/beagle/debian-rfs/etc/init.d/bootlogd
+++ /dev/null
@@ -1,96 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: bootlogd
-# Required-Start: mountdevsubfs
-# X-Start-Before: hostname keymap keyboard-setup procps pcmcia hwclock hwclockfirst hdparm hibernate-cleanup lvm2
-# Required-Stop:
-# Default-Start: S
-# Default-Stop:
-# Short-Description: Start or stop bootlogd.
-# Description: Starts or stops the bootlogd log program
-# which logs boot messages.
-### END INIT INFO
-
-PATH=/sbin:/bin # No remote fs at start
-DAEMON=/sbin/bootlogd
-[ -x "$DAEMON" ] || exit 0
-NAME=bootlogd
-DESC="boot logger"
-BOOTLOGD_OPTS="-r -c"
-[ -r /etc/default/bootlogd ] && . /etc/default/bootlogd
-. /lib/init/vars.sh
-
-. /lib/lsb/init-functions
-
-# Because bootlogd is broken on some systems, we take the special measure
-# of requiring it to be enabled by setting an environment variable.
-case "$BOOTLOGD_ENABLE" in
- [Nn]*)
- exit 0
- ;;
-esac
-
-# Previously this script was symlinked as "stop-bootlogd" which, when run
-# with the "start" argument, should stop bootlogd. Now stop-bootlogd is
-# a distinct script, but for backward compatibility this script continues
-# to implement the old behavior.
-SCRIPTNAME=${0##*/}
-SCRIPTNAME=${SCRIPTNAME#[SK]??}
-ACTION="$1"
-case "$0" in
- *stop-bootlog*)
- [ "$ACTION" = start ] && ACTION=stop
- ;;
-esac
-
-case "$ACTION" in
- start)
- # PATH is set above
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- if [ -d /proc/1/. ]
- then
- umask 027
- start-stop-daemon --start --quiet --exec $DAEMON -- \
- $BOOTLOGD_OPTS
- ES=$?
- else
- $DAEMON $BOOTLOGD_OPTS
- ES=$?
- fi
- [ "$VERBOSE" != no ] && log_end_msg $ES
- ;;
- stop)
- PATH=/bin:/sbin:/usr/bin:/usr/sbin
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
- ES=$?
- sleep 1
- [ "$VERBOSE" != no ] && log_end_msg $ES
- if [ -f /var/log/boot ] && [ -f /var/log/boot~ ]
- then
- [ "$VERBOSE" = no ] || log_action_begin_msg "Moving boot log file"
- # bootlogd writes to boot, making backup at boot~
- cd /var/log && {
- chgrp adm boot || :
- savelog -q -p -c 5 boot \
- && mv boot.0 boot \
- && mv boot~ boot.0
- }
- ES=$?
- [ "$VERBOSE" = no ] || log_action_end_msg $ES
- fi
- ;;
- restart|force-reload)
- /etc/init.d/bootlogd stop
- /etc/init.d/bootlogd start
- ;;
- status)
- status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
- ;;
- *)
- echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
- exit 3
- ;;
-esac
-
-: