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

📄 thttpd.init

📁 ARM7-S3C4510B 的源代码程序
💻 INIT
字号:
#!/bin/bash# The following two lines enable chkconfig(1) to manipulate this script# chkconfig: 2345 99 01# description: control Jef Poskanzer's tiny/turbo/throttling http daemon# source function library. /etc/rc.d/init.d/functionspidfile=/var/run/thttpd.pidpid=`cat $pidfile 2>/dev/null`if test -n "$pid" && kill -0 $pid 2>/dev/null; then	dead=noelse	dead=yesfidie(){	echo -n "$*"; echo_failure; echo ''	exit 1;}case "$1" in start)	test "$dead" = yes || die thttpd is already running	echo -n "Starting thttpd: "	daemon /usr/sbin/thttpd -C /etc/thttpd.conf	touch /var/lock/subsys/thttpd	echo_success;echo ''	exit 0	;;  stop)	echo -n "Gently shutting down thttpd: "	signal=USR1	;;  kill)	echo -n "Violently killing thttpd: "	signal=INT	;;status)	status thttpd; exit $?;;restart) $0 stop; sleep 2; exec $0 start;;     *)	die "Usage: thttpd {start|stop|restart|status}";;esactest "$dead" = no || die thttpd is not runningkill -$signal $pidsleep 2kill -0 $pid 2>/dev/null && die "thttpd[$pid] will not die"rm -f /var/lock/subsys/thttpdecho_success; echo ''

⌨️ 快捷键说明

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