/etc/rc.local and pure-ftp

pure-ftp already run in port 21 and other instance needed to make different server call

existing one controlled by /etc/rc.conf and I don’t know howto configure another one

after searching google I found clue about rc.local

by default rc.local not exist, I have to create one :

kongja# ee /etc/rc.local

put this lines :

#!/bin/sh

/usr/local/sbin/pure-ftpd -S 172.88.1.15,212 -A -c50 -j -l mysql:/home/alamster/ftp/pureftpd-mysql_login.conf &

save by press Esc button

either execute it by typing :

kongja# sh /etc/rc.local

or by restarting  server then I can see two ftp service running . One using port 21 and another one using port 212

kongja# ps -ax | grep ftp
 1063  ??  I      0:00.03 pure-ftpd (SERVER) (pure-ftpd)
64979  p0- I      0:00.02 pure-ftpd (SERVER) (pure-ftpd)

 to make sure :

kongja# netstat -an | grep LISTEN
tcp4       0      0  *.21                   *.*                    LISTEN
tcp4       0      0  172.88.1.15.212         *.*                    LISTEN

great, I hope I not breaking anything by putting this line in rc.local icon smile /etc/rc.local and pure ftp