?? boa.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 + -