1821245 Members
2710 Online
109632 Solutions
New Discussion юеВ

ftp service

 
Jade Bulante
Frequent Advisor

ftp service

Is there a command to stop and restart the ftp service (HPUX 11.00)?
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: ftp service

Jade,

kill, if it is running.


Then to modify options change the file /etc/inetd.conf, then issue:

inetd -c


live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor

Re: ftp service

The ftpd is started by inetd daemon from the config file /etc/inetd.conf. So to restart ftpd, you got to restart inetd.

# /usr/sbin/inetd -k
===> kill it
# /usr/sbin/inetd -l
===> start it (with logging enabled)
Helen French
Honored Contributor

Re: ftp service

Hi Jade:

The ftp services are started by inetd daemon. You can try these things:
#inetd -c (restarts the deamon)

Or start/stop the daemon
# /sbin/init.d/inetd stop
# /sbin/init.d/inetd start

HTH,
Shiju
Life is a promise, fulfill it!
Victor_5
Trusted Contributor

Re: ftp service

/sbin/init.d/inetd stop
/sbin/init.d/inetd start
Darrell Allen
Honored Contributor

Re: ftp service

Hi Jade,

A copy of ftpd is spawned by inetd to handle client requests. When the session is closed, ftpd for that session dies.

Stopping and restarting inetd will not kill an ftpd process that is already running. Neither will using inetd -c (to re-read inetd's configuration file). Stopping inetd does however keep any new ftp sessions from being started.

If you need to stop an ftpd process, you'll have to kill it.

If you want to disable ftp service, comment out (or remove) ftpd from /etc/inetd.conf and run inetd -c.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Wodisch
Honored Contributor

Re: ftp service

Hi Jade,

first modify the "/etc/inetd.conf" (if neccessary) and issue the "inetd -c", then "kill" the "ftpd":
kill -15 $(UNIX95=x ps -C ftpd -o pid="")

HTH,
Wodisch
Darrell Allen
Honored Contributor

Re: ftp service

Earlier I said:
Stopping inetd does however keep any new ftp sessions from being started.

I had intended to say:
Stopping inetd does however keep any new ftp sessions from being started (as well as all other services under inetd's control such as telnet, rlogin, etc).

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ivan Azuara
Regular Advisor

Re: ftp service

Don??t worry !

Just do the next:

# ps -ef | grep inetd
root 1201 1 0 Apr 22 ? 9:58 /usr/sbin/inetd
root 19029 16773 1 13:57:03 pts/0 0:00 grep inetd


kill the daemon:

# /usr/sbin/inetd -k

restart the daemon:

# /usr/sbin/inetd -l

check if the daemon is up again:

# ps -ef | grep inetd
root 1201 1 0 Apr 22 ? 9:58 /usr/sbin/inetd
root 19029 16773 1 13:57:03 pts/0 0:00 grep inetd

That??s all ! . Remember that this daemon is the Internet Services Daemon and enable the services of (rcp,remsh,ftp, rlogin and telnet).

Best Regards !
"Enjoy the life .."