thttpd_wrapper

来自「非常优秀的linux嵌入式http服务器」· 代码 · 共 22 行

TXT
22
字号
#!/bin/sh## thttpd_wrapper - wrapper script for thttpd on FreeBSD## This goes in /usr/local/sbin.  It runs thttpd in a loop.  If thttpd# exits then the script restarts it automatically.## The -D flag tells thttpd to *not* put itself into the background,# and the -C flag tells it to get the rest of its configuration from# the specified config file.while true ; do    /usr/local/sbin/thttpd -D -C /usr/local/www/thttpd_config    if [ -f /var/run/nologin ] ; then	exit    fi    sleep 10    egrep ' thttpd\[' /var/log/messages |      tail -33 |      mail -s "thttpd on `hostname` restarted" rootdone

⌨️ 快捷键说明

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