安装配置一个proftpd的实例[2]

[入库:2005年9月21日] [更新:2007年3月24日]

本文简介:

# chkconfig:; 345 85 15
# description:; ProFTPD is an enhanced FTP server with \
#              a focus toward simplicity, security, and ease of configuration. \
#              It features a very Apache-like configuration syntax, \
#              and a highly customizable server infrastructure, \
#              including support for multiple&np'''vira''' FTP servers, \
#              anonymous FTP, and permission-based directory visibility.
# processname:; proftpd
# config:; /etc/proftpd.conf
#
# By:; Osman Elliyasa <osman@Cable.EU.org>
# $Id:; proftpd.init.d,v 1.7 2002/12/07 21:;50:;27 jwm Exp $

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/proftpd ]; then
      . /etc/sysconfig/proftpd
fi

#下面这行设置环境变量,注意设置好你的proftpd的安装目录
PATH="$PATH:;/usr/local/sbin:;/var/proftpd/bin:;/var/proftpd/sbin"

# See how we were called.
case "$1" in
        start)
                echo -n "Starting proftpd:; "
                daemon proftpd $OPTIONS
                echo
                touch /var/lock/subsys/proftpd
                ;;
        stop)
                echo -n "Shutting down proftpd:; "
                killproc proftpd
                echo
                rm -f /var/lock/subsys/proftpd
                ;;
        status)
                status proftpd
                ;;
        restart)
                $0 stop
                $0 start
                ;;
        reread)
                echo -n "Re-reading proftpd config:; "
                killproc proftpd -HUP
                echo
                ;;
        suspend)
                hash ftpshut >/dev/null 2>&1
                if [ $? = 0 ]; then

本文关键:安装配置一个proftpd的实例
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top