3 # bootlogd One of the first scripts to be executed. Starts or stops
4 # the bootlogd log program. If this script is called as
5 # "stop-bootlogd", it will stop the daemon instead of
6 # starting it even when called with the "start" argument.
8 # Version: @(#)bootlogd 2.85-12 21-Mar-2004 miquels@cistron.nl
11 PATH=/sbin:/bin:/usr/sbin:/usr/bin
16 test -f $DAEMON || exit 0
18 [ -r /etc/default/bootlogd ] && . /etc/default/bootlogd
20 ## set -e # not needed
22 case "$BOOTLOGD_ENABLE" in
33 if [ "$ACTION" = start ]
42 echo -n "Starting $DESC: "
46 start-stop-daemon --start --quiet \
54 echo -n "Stopping $DESC: "
55 start-stop-daemon --stop --quiet --exec $DAEMON
57 if [ "$STOPPER" ] && [ -f /var/log/boot ] && \
62 savelog -p -c 5 boot > /dev/null 2>&1
70 echo -n "Restarting $DESC: "
71 start-stop-daemon --stop --quiet --exec $DAEMON
73 start-stop-daemon --start --quiet --exec $DAEMON
79 echo "Usage: $N {start|stop|restart|force-reload}" >&2