samba.rc

来自「samba-3.0.22.tar.gz 编译smb服务器的源码」· RC 代码 · 共 68 行

RC
68
字号
#! /bin/sh## Samba server control#IS_ON=/etc/chkconfigKILLALL=/sbin/killallSAMBAD=/usr/samba/bin/smbdPROFILE_SAMBAD=/usr/samba/bin/smbd.profile#SAMBA_OPTS=-d2NMBD=/usr/samba/bin/nmbdPROFILE_NMBD=/usr/samba/bin/nmbd.profile#NMBD_OPTS=-d1SMBCONTROL=/usr/samba/bin/smbcontrolif test ! -x $IS_ON ; then    IS_ON=truefiif $IS_ON verbose ; then    ECHO=echoelse		# For a quiet startup and shutdown    ECHO=:fiif $IS_ON sambaprofiling ; then        enable_profiling=yesfiif test "$enable_profiling" -o "$1" = "profile" ; then        SAMBAD=$PROFILE_SAMBAD        NMBD=$PROFILE_NMBD        enable_profiling="yes"ficase $1 instart|profile)	if $IS_ON samba && test -x $SAMBAD; then            /etc/init.d/samba stop	    $ECHO "Samba:\c"	    $SAMBAD $SAMBA_OPTS -D; $ECHO " smbd\c"	    $NMBD $NMBD_OPTS -D; $ECHO " nmbd\c"	    $ECHO "."	fi        if $IS_ON samba && test "$enable_profiling" ; then                if test -x $SMBCONTROL; then                    $ECHO "Enabling Samba profiling."                    $SMBCONTROL smbd profile on > /dev/null 2>&1                    $SMBCONTROL nmbd profile on > /dev/null 2>&1                fi                $KILLALL -HUP pmcd        fi	;;stop)	$ECHO "Stopping Samba Servers."	$KILLALL -15 smbd nmbd	$KILLALL -15 smbd.profile nmbd.profile	$KILLALL -15 pmdasamba	exit 0	;;*)	echo "usage: /etc/init.d/samba {start|stop|profile}"	;;esac

⌨️ 快捷键说明

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