⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bootlogd.init

📁 sysvinit--linux系统下的init
💻 INIT
字号:
#! /bin/sh## bootlogd	One of the first scripts to be executed. Starts or stops#		the bootlogd log program. If this script is called as#		"stop-bootlogd", it will stop the daemon instead of#		starting it even when called with the "start" argument.## Version:	@(#)bootlogd  2.77  24-Aug-1999  miquels@cistron.nl#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binDAEMON=/sbin/bootlogdNAME=bootlogdDESC="Bootlog daemon"PIDFILE=/var/run/$NAME.pidtest -f $DAEMON || exit 0## set -e # not needed. /etc/default/rcScase "$0" in	*stop-bootlog*)		stopper=yes		;;esaccase "$1" in	start|stop)		if [ "$stopper" ] || [ "$1" = "stop" ]		then			echo -n "Stopping $DESC: "			start-stop-daemon --stop --quiet --exec $DAEMON		else			echo -n "Starting $DESC: "			start-stop-daemon --start --quiet --exec $DAEMON -- -r		fi		if [ "$stopper" ] && [ -f /var/log/boot.log ] && \		   [ -f /var/log/boot.log~ ]		then			cd /var/log			savelog -p -c 5 boot.log > /dev/null 2>&1			mv boot.log.0 boot.log			mv boot.log~ boot.log.0		fi		echo "$NAME."		;;	 restart|force-reload)		echo -n "Restarting $DESC: "		start-stop-daemon --stop --quiet --pidfile \                	$PIDFILE --exec $DAEMON -- -p $PIDFILE		sleep 1		start-stop-daemon --start --quiet --pidfile \			$PIDFILE --exec $DAEMON -- -p $PIDFILE		echo "$NAME."		;;	*)		N=${0##*/}		N=${N#[SK]??}		echo "Usage: $N {start|stop|restart|force-reload}" >&2		exit 1		;;esacexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -