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

📄 boa.init

📁 c语言开发,ntp协议,利于新手的学习和上手
💻 INIT
字号:
#! /bin/sh## /etc/init.d/boa -- start/stop Boa HTTP server## This file was automatically customized by debmake on Mon, 23 Dec 1996 20:27:43 -0800## Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.# Modified for Debian by Christoph Lameter <clameter@debian.org># Modified for Debian GNU/Linux by Jonathon Nelson <jnelson@boa.org>PATH=/bin:/usr/bin:/sbin:/usr/sbinDAEMON=/usr/sbin/boa# update-rc.d option extracted by debstd to generate postinst on package buildFLAGS="defaults 50"test -f $DAEMON || exit 0ALIVE=`ps axw | grep "/usr/sbin/boa *\$" | awk '{print $1}'`#ALIVE=`pidof $DAEMON`WAIT=30case "$1" in  start)    echo -n "Starting HTTP server: Boa"    start-stop-daemon --start --quiet --exec $DAEMON    echo "."    ;;  stop)    echo -n "Stopping HTTP server: Boa"    start-stop-daemon --stop --quiet --exec $DAEMON    sleep 1    start-stop-daemon --stop --quiet --signal INT --exec $DAEMON    echo "."    ;;  force-reload)    echo -n "Forcing reload of HTTP server: Boa"    start-stop-daemon --stop --quiet --signal HUP --exec $DAEMON    echo "."    ;;  restart)    echo -n "Restarting HTTP server: Boa"    if [ -n "$ALIVE" ];    then      start-stop-daemon --stop --quiet --exec $DAEMON      $DAEMON#      start-stop-daemon --start --quiet --exec $DAEMON      echo "."    else      echo ". Boa not running!  Not attempting restart."    fi    ;;  *)    echo "Usage: /etc/init.d/boa {start|stop|restart|force-reload}"    exit 1    ;;esacexit 0

⌨️ 快捷键说明

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