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

📄 init.d

📁 这是国外的resip协议栈
💻 D
字号:
#! /bin/sh### BEGIN INIT INFO# Provides:          repro# Required-Start:    $local_fs $remote_fs# Required-Stop:     $local_fs $remote_fs# Default-Start:     2 3 4 5# Default-Stop:      S 0 1 6# Short-Description: Repro initscript### END INIT INFO## Author:	Martin Hoffmann <hn@nvnc.de>## Version:	@(#)repro 0.2  18-Feb-2006  hn@nvnc.de#set -ePATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binDESC="Repro SIP Proxy"NAME=reproDAEMON=/usr/sbin/$NAMEPIDFILE=/var/run/$NAME.pidSCRIPTNAME=/etc/init.d/$NAMERUNDIR=/var/lib/$NAMERUNUSER=repro:repro# Gracefully exit if the package has been removed.test -x $DAEMON || exit 0# Read config file if it is present.#if [ -r /etc/default/$NAME ]#then#	. /etc/default/$NAME#fi##	Function that starts the daemon/service.#d_start() {	CMDARGS=`sed s/#.*// /etc/repro.conf`	start-stop-daemon --start --quiet --pidfile $PIDFILE --background \		--make-pidfile --chuid $RUNUSER --chdir $RUNDIR \		--exec $DAEMON -- $CMDARGS \		|| echo -n " already running"}##	Function that stops the daemon/service.#d_stop() {	start-stop-daemon --stop --quiet --pidfile $PIDFILE \		--name $NAME \		|| echo -n " not running"}##	Function that sends a SIGHUP to the daemon/service.#d_reload() {	start-stop-daemon --stop --quiet --pidfile $PIDFILE \		--name $NAME --signal 1}case "$1" in  start)	echo -n "Starting $DESC: $NAME"	d_start	echo "."	;;  stop)	echo -n "Stopping $DESC: $NAME"	d_stop	echo "."	;;  restart|force-reload)	echo -n "Restarting $DESC: $NAME"	d_stop	sleep 1	d_start	echo "."	;;  *)	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2	exit 1	;;esacexit 0

⌨️ 快捷键说明

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