起動(xinetd)

xinetd経由で起動したいと思います。

以下の設定ファイルを修正します。

# vi /usr/local/etc/proftpd.conf

設定内容は以下の通りです。

ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on

↓(変更)
ServerName "ProFTPD Default Installation"
ServerType inetd
DefaultServer on

xinetdのproftpd用の設定ファイルを修正します。

# vi /etc/xinetd.d/proftpd

設定内容は以下の通りです。

service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/proftpd
log_on_failure += USERID
disable = no
}

以下ののコマンドで起動を確認します。

# ps -axu

root 13782 0.1 0.2 2272 944 ? S 11:57 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid

また、以下ののコマンドで21番ポートが空いているか確認します。

# netstat -nap

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 13782/xinetd



コメント