📄 openser.init
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -