View Single Post
  #27  
Old 28th March 2006, 03:23
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default better called "vsftpd and SuSe 10"

as promised... what I learned! For some reason when the vsftpd rpm package supplied with SuSe 10 is installed it does not automatically create an init.d vsftpd script. After searching, trying, succeeding these are the steps to accomplish this on your own...

1. vim or kwrite /etc/init.d/vsftpd (we are creating this as a new file)
2. Copy and paste this into the file, then save and close:
Code:
#!/bin/sh
case "$1" in
start)
    echo "Starting vsftpd ..."
    /usr/sbin/vsftpd &
    ;;
stop)
    echo "Stopping vsftpd ..."
    killall vsftpd
    ;;
*)
    echo "Usage: 'basename $0' {start|stop}" >&2
    exit 64
    ;;
esac
exit 0
3. From terminal run:
Code:
chmod +x /etc/init.d/vsftpd
4. Open YaST, System, System Services (Runlevel).
5. Select Expert Mode.
6. Scroll down to vsftpd, highlight it and select the 3 and 5 runlevels, then Finish.
7. Restart machine, from terminal run
Code:
 ps aux | grep vsftp
You should see something to the effect of
Code:
server1:~ # ps aux | grep vsftp
root      3639  0.0  0.2   1828   536 ?        S    19:54   0:00 /usr/sbin/vsftpd
root      3642  0.0  0.1   1520   448 ?        Ss   19:54   0:00 startpar -f -- vsftpd
root      6005  0.0  0.2   1828   604 pts/1    R+   20:19   0:00 grep vsftp
server1:~ #
(note if run as user the last line will more than likely start with user name, shown as root above.)

Hope this helps others in the future.
Reply With Quote