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

📄 siproxd.init

📁 这是一个C程序
💻 INIT
字号:
#!/bin/bash##	/etc/rc.d/init.d/siproxd## Starts the siproxd daemon## chkconfig: 345 94 80## description: Listen and dispatch SIP messages # processname: siproxd # Source function library.. /etc/rc.d/init.d/functions[ -x /usr/sbin/siproxd ] || exit 0RETVAL=0## See how we were called.#start() {	# Check if it is already running	if [ ! -f /var/lock/subsys/siproxd ]; then	    echo -n $"Starting sip proxy: "	    daemon /usr/sbin/siproxd	    RETVAL=$?	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/siproxd	    echo	fi	return $RETVAL}stop() {	echo -n $"Stopping sip proxy: "	killproc /usr/sbin/siproxd	RETVAL=$?	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/siproxd	echo        return $RETVAL}restart() {	stop	start}	reload() {	trap "" SIGHUP	killall -HUP siproxd}	case "$1" instart)	start	;;stop)	stop	;;reload)	reload	;;restart)	restart	;;condrestart)	if [ -f /var/lock/subsys/siproxd ]; then	    restart	fi	;;status)	status siproxd	;;*)	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"	exit 1esacexit $RETVAL

⌨️ 快捷键说明

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