openser.init

来自「性能优秀的SIP Proxy」· INIT 代码 · 共 64 行

INIT
64
字号
#!/bin/bash## Startup script for OpenSER## chkconfig: 345 85 15# description: OpenSER is a fast SIP Proxy.## processname: openser# pidfile: /var/run/openser.pid# config: /etc/openser/openser.cfg# Source function library.. /etc/rc.d/init.d/functionsoser=/usr/sbin/openserprog=openserRETVAL=0start() {	echo -n $"Starting $prog: "	daemon $oser $OPTIONS >/dev/null 2>/dev/null	RETVAL=$?	echo	[ $RETVAL = 0 ] && touch /var/lock/subsys/openser	return $RETVAL}stop() {	echo -n $"Stopping $prog: "	killproc $oser	RETVAL=$?	echo	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/openser /var/run/openser.pid}# See how we were called.case "$1" in	start)		start		;;	stop)		stop		;;	status)		status $oser		RETVAL=$?		;;	restart)		stop		start		;;	condrestart)		if [ -f /var/run/openser.pid ] ; then			stop			start		fi		;;	*)		echo $"Usage: $prog {start|stop|restart|condrestart|status|help}"		exit 1esacexit $RETVAL

⌨️ 快捷键说明

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