slpd.redhat_init
来自「SLP协议在linux下的实现。此版本为1.2.1版。官方网站为www.open」· REDHAT_INIT 代码 · 共 54 行
REDHAT_INIT
54 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?