Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
ProFTPD starting on boot
View previous topic :: View next topic  
Author Message
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Tue Jun 22, 2010 1:31 pm    Post subject: ProFTPD starting on boot Reply with quote

Do you have ready file under the name rc.proftpd?

It used in order to load FTP starting on the boot.



Or please suggest another way to automatically start FTP server for 1.5.2. version?


Thank you
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Jun 22, 2010 5:48 pm    Post subject: Reply with quote

You can use that which I'll add in ftp package with proper proftpd.conf.
Code:
#!/bin/sh
# Startup script for ProFTPD

FTPD_CONF=/etc/proftpd.conf
PIDFILE=/var/run/proftpd.pid


proftpd_start(){
if [ -f $PIDFILE ]; then
echo "$0: proftpd already running with [PID `cat $PIDFILE`]"
exit
fi
if [ -r $FTPD_CONF ]; then
echo "Starting proftpd..."
/usr/sbin/proftpd -c $FTPD_CONF
else
echo "$0: cannot start proftpd -- $FTPD_CONF missing"
fi
}

proftpd_stop(){
if [ -f $PIDFILE ]; then
echo "Stopping proftpd..."
/bin/kill `cat $PIDFILE`
else
echo "$0: proftpd not running"
exit 1
fi
}
proftpd_restart(){
proftpd_stop
sleep 1
proftpd_start
}

case "$1" in
        'start')
                proftpd_start
                ;;
        'stop')
                proftpd_stop
                ;;
        'restart')
                proftpd_restart
                ;;
        *)
                echo "usage $0 start|stop|restart"
esac


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Thu Jun 24, 2010 12:37 pm    Post subject: Reply with quote

hello,

we made the file 1.5.2 executable, but unfortunately ftp server did not start on boot.

we tried it today on the new instalation 1.5.2. And no changes was not made at configuration gile ftp server, but only delete one comma at protocol.

Comands "start", "restart" with this file worked well.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional