Well, now something other. vsftpd stopped working. it is installed, but the daemon isn't running..
vsftpd being started by xinetd which changed a bit is the reason why it won't start.
removed vsftpd, and re-installed.
Now I get the following message, which makes sense, but I'm not sure wheter I should put this in the rc.unslung file or the S10xinetd
Code:Configuring vsftpd You'll need to add line like echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf to your /unslung/rc.xinetd file -- see the wiki at http://www.nslu2-linux.org for more info
Here's my rc.unslung
and here my S10xinetdCode:#! /bin/sh # Start/stop all init scripts in /opt/etc/init.d # starting them in numerical order and # stopping them in reverse numerical order # if [ $# -ne 1 ]; then printf "Usage: $0 {start|stop}\n" >&2 exit 1 fi daemons=`echo $(/usr/bin/dirname $0)/S??*` [ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort -r` for i in $daemons; do # Ignore dangling symlinks (if any). [ ! -f "$i" ] && continue # Write to syslog logger -t rc.unslung "$1 service $i" case "$i" in *.sh) # Source shell script for speed. ( trap - INT QUIT TSTP set $1 . $i ) ;; *) # No sh extension, so fork subprocess. $i $1 ;; esac done
thanks again.Code:#!/bin/sh # # Startup script for syslog # PATH=/opt/bin:/opt/sbin:/opt/local/bin:/sbin:/bin:/usr/bin:/usr/sbin LOGFILE=syslog.log KERNLOGFILE=kern.log LOG_OLD=/tmp LOG_NEW=/opt/var/log prefix="" sbindir=${prefix}/sbin NAME=syslogd DAEMON=${sbindir}/${NAME} DESC="syslogd" OPTIONS="-m 0 -O $LOG_NEW/$LOGFILE -S -l 6 -s 0" case "$1" in start0) printf "Starting ${DESC}: " # Copy old syslog and create symlink to new if [ ! -L /tmp/syslog.log ]; then cat $LOG_OLD/$LOGFILE >> $LOG_NEW/$LOGFILE mv $LOG_OLD/$LOGFILE $LOG_NEW/$KERNLOGFILE ln -s $LOG_NEW/$LOGFILE $LOG_OLD/$LOGFILE fi ${DAEMON} ${OPTIONS} printf "${NAME}.\n" logger -t ${NAME} "started." ;; stop) if [ -n "`pidof syslogd`" ]; then printf "Stopping ${DESC}: " killall "${NAME}" printf "${NAME}.\n" fi ;; start|restart|force-reload) $0 stop sleep 1 $0 start0 ;; *) printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2 exit ;; esac exit 0




Reply With Quote