1823120 Members
3320 Online
109646 Solutions
New Discussion юеВ

Re: ftp stop / start

 
SOLVED
Go to solution
Jade Bulante
Frequent Advisor

ftp stop / start

I just issued an ftpshut on my linux server. Now I couldn't start the service anymore. How do I autostart the service upon booting? How do I stop and start the service manually also??
6 REPLIES 6
harry d brown jr
Honored Contributor
Solution

Re: ftp stop / start


This question is better asked in the linux forum:

http://forums.itrc.hp.com/cm/FamilyHome/1,,118,00.html

But we will also need to know the linux "flavor" (ie redhat, mandrake, ...) and version number.

live free or die
harry
Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: ftp stop / start

Hi Jade:

The 'ftpd' daemon is normally started by 'inetd' (see 'man inetd'). As such, you can restart it's services (and here, ftp) by doing:

# inetd -c

You should have an entry in /etc/inetd.conf that looks like:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: ftp stop / start

Hope this is what you're looking for ..

http://linuxcommand.org/man_pages/ftprestart8.html
Niraj Kumar Verma
Trusted Contributor

Re: ftp stop / start

Hi If you are using RedHat Linux 7.2 then

1. Once you install any ftp (wu-ftpd) on this version of linux you can find an entry in
/etc/xinetd.d/*

for wu-ftp the script look like as follows
---------------------------------
service ftp
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
disable = no
}

To enable during startup set
"disable = no" it will automatically start. If you want to disable make this switch value to yes. and restart the xinetd service.

Hope you get ur answer.

-Niraj
Niraj.Verma@philips.com
Niraj Kumar Verma
Trusted Contributor

Re: ftp stop / start

Hey !!

If you have used ftpshut then it will create the two lock files

/var/ftp/etc/shutmsg
/etc/shutmsg

To restart either use the command

# ftprestart

or do the following

# rm /var/ftp/etc/shutmsg
# rm /etc/shutmsg
# ps -aef |grep xinetd
# kill -HUP

--Niraj
Niraj.Verma@philips.com
benoit Bruckert
Honored Contributor

Re: ftp stop / start

Hi Jade,
What kind of ftp product do you use ?

If this is the standard one, then it's inside the inetd on xinetd (more en more common on linux boxes).

If this is not the standard (the command ftpshut means probably it),
then you have another product like proftpd or something like that. the start and shut is a specific command ! See the doc of your product !!

hope it may help .

regards
benoit
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)