]>
git.wh0rd.org - sysvinit.git/blob - obsolete/bootlogd.init
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.77 24-Aug-1999 miquels@cistron.nl
11 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
15 PIDFILE
=/var
/run
/$NAME.pid
17 test -f $DAEMON ||
exit 0
19 ## set -e # not needed
31 if [ "$stopper" ] ||
[ "$1" = "stop" ]
33 echo -n "Stopping $DESC: "
34 start-stop-daemon
--stop --quiet --exec $DAEMON
36 echo -n "Starting $DESC: "
37 start-stop-daemon
--start --quiet --exec $DAEMON -- -r
39 if [ "$stopper" ] && [ -f /var
/log
/boot.log
] && \
40 [ -f /var
/log
/boot.log~
]
43 savelog
-p -c 5 boot.log
> /dev
/null
2>&1
44 mv boot.log
.0 boot.log
45 mv boot.log~ boot.log
.0
50 echo -n "Restarting $DESC: "
51 start-stop-daemon
--stop --quiet --pidfile \
52 $PIDFILE --exec $DAEMON -- -p $PIDFILE
54 start-stop-daemon
--start --quiet --pidfile \
55 $PIDFILE --exec $DAEMON -- -p $PIDFILE
61 echo "Usage: $N {start|stop|restart|force-reload}" >&2