| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		vadim Member
 
  Joined: 16 Oct 2008 Posts: 40
 
  | 
		
			
				 Posted: Tue Jun 22, 2010 1:31 pm    Post subject: ProFTPD starting on boot | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		gerasimos_h Site Admin
 
  Joined: 09 Aug 2007 Posts: 1757 Location: Greece
  | 
		
			
				 Posted: Tue Jun 22, 2010 5:48 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		vadim Member
 
  Joined: 16 Oct 2008 Posts: 40
 
  | 
		
			
				 Posted: Thu Jun 24, 2010 12:37 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		 |