You are not logged in.
Pages: 1
i installed vsftpd
i dont found vsftpd script into inet.d for start/restart/status
ftp server dont start auto... i read over daemons in slitaz first time... but dont understand now... need more it
(read tutorials install and config vsftpd ok)
how can start in command line vsftpd :: service, vsftpd script...
Offline
Hi ribeirego,
from what I read in the INSTALL file https://security.appspot.com/downloads/vsftpd-3.0.5.tar.gz
just add the line in /etc/inetd.conf
ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/vsftpd
or at least that's what I understood ;-)
You may want to run the binary from an inetd of some kind, because this can
give you extra features - e.g. xinetd has a lot of settings. (Note that
vsftpd's inbuilt listener covers most of the more useful xinetd settings).
5a) If using standard "inetd", you will need to edit /etc/inetd.conf, and add
a line such as:
ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/vsftpd
(Make sure to remove or comment out any existing ftp service lines. If you
don't have tcp_wrappers installed, or don't want to use them, take out the
/usr/sbin/tcpd part).
inetd will need to be told to reload its config file:
kill -SIGHUP [c]pidof inetd[/c]
Offline
thanks givor for your reply... but dont work
i was running vsftpd in standlone mode
change for inetd to try your edit line...
i need read more about init and daemons... i will try in next weeks...
Offline
I will briefly summarize the processes:
1) inetd launches ondemand on instructions from services.conf, the daemon on demand from the network.
2) If it works standalone, you can start it by entering the startup line in /etc/init.d/local.sh.
3) If you want a daemon running permanently in the background, create the launcher in /etc/init.d and add the entry in /etc/rcS.conf to the run daemons line.
3bis) To create a launcher, you can copy/edit any script in /etc/init.d and change the name and executable accordingly.
An example:
#!/bin/sh
# /etc/init.d/vsftpd: Start, stop vsftpd deamon on SliTaz, at boot
# time or with the command line.
#
# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
#
. /etc/init.d/rc.functions
. /etc/daemons.conf
NAME=vfstpd
DESC="vsftpd deamon"
DAEMON=/usr/local/sbin/vsftpd
OPTIONS=$VSFTPD_OPTIONS
PIDFILE=/var/run/vsftpd.sock
case "$1" in
stop)
echo -n "Stopping $DESC: $NAME... "
killall -q vsftpd
rm -f $PIDFILE
status
;;
start)
if [ ! -e $PIDFILE ]; then
echo -n "Starting $DESC: $NAME... "
$DAEMON $OPTIONS
status
else
echo -n "Not starting $DESC: $DESC is already running"
false
status
fi
;;
*)
echo ""
echo -e "33[1mUsage:33[0m /etc/init.d/[c]basename $0[/c] [start|stop]"
echo ""
exit 1
;;
esac
exit 0
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]