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

📄 slpd.redhat_init

📁 SLP协议在linux下的实现。此版本为1.2.1版。官方网站为www.openslp.org
💻 REDHAT_INIT
字号:
#!/bin/bash##	/etc/rc.d/init.d/slpd## Starts the at daemon## chkconfig: 345 40 60# description: OpenSLP daemon for the Service Location Protocol# processname: slpd# Source function library.. /etc/rc.d/init.d/functionstest -x /usr/sbin/slpd || exit 0RETVAL=0##	See how we were called.#case "$1" in  start)	# Check if atd is already running	if [ ! -f /var/lock/subsys/slpd ]; then	    echo -n 'Starting slpd: '	    daemon /usr/sbin/slpd	    RETVAL=$?	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/slpd	    echo	fi	;;  stop)	echo -n 'Stopping slpd: '	killproc /usr/sbin/slpd	RETVAL=$?	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/slpd	echo	;;  reload|restart)	$0 stop	$0 start	RETVAL=$?	;;  status)	status /usr/sbin/slpd	RETVAL=$?	;;  *)	echo "Usage: /etc/rc.d/init.d/slpd {start|stop|restart|reload|status}"	exit 1esacexit $RETVAL

⌨️ 快捷键说明

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