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

📄 multipathd.init.redhat

📁 Linux Multipath Source Code
💻 REDHAT
字号:
#!/bin/bash##	/etc/rc.d/init.d/multipathd## Starts the multipath daemon## chkconfig: - 13 87# description: Manage device-mapper multipath devices# processname: multipathdDAEMON=/sbin/multipathdprog=`basename $DAEMON`initdir=/etc/rc.d/init.dlockdir=/var/lock/subsyssysconfig=/etc/sysconfig system=redhat if [ $system = redhat ]; then	# Source function library.	. $initdir/functionsfi test -x $DAEMON || exit 0test -r $sysconfig/$prog && . $sysconfig/$progRETVAL=0## See how we were called.#start() {	echo -n $"Starting $prog daemon: "	daemon $DAEMON	RETVAL=$?	[ $RETVAL -eq 0 ] && touch $lockdir/$prog	echo}stop() {	echo -n $"Stopping $prog daemon: "	killproc $DAEMON	RETVAL=$?	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog	echo}restart() {	stop	start}	reload() {	echo -n "Reloading $prog: "	trap "" SIGHUP	killproc $DAEMON -HUP	RETVAL=$?	echo}	case "$1" instart)	start	;;stop)	stop	;;reload)	reload	;;restart)	restart	;;condrestart)	if [ -f $lockdir/$prog ]; then	    restart	fi	;;status)	status $prog	RETVAL=$?	;;*)	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"	RETVAL=1esacexit $RETVAL

⌨️ 快捷键说明

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