FreeBSD How to restart inetd service / daemon

by on June 10, 2004 · 2 comments· Last updated May 1, 2007

inetd is referred to as the Internet Super-Server because it manages connections for several services. When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it. First login as a root user.

FreeBSD version 5.0/6.0 or later

Newer version of FreeBSD has special start, stop, restart script, you can use this script restart inetd:

#/etc/rc.d/inetd restart

Old method (works on all variant of UNIX/Linux/BSD oses)
Once you made changes to inetd (internet super-server)configuration file (/etc/inetd.conf) you can use kill or killall command as follows to restart inetd:

# killall -HUP inetd

OR

# kill -HUP inetd

OR

# kill -HUP `cat /var/run/inetd.pid`

This causes the inetd program to restart and examine its configuration files. This is especially useful if you have changed the configuration settings.

See also:

  • BSD start services article it explains rc.conf and other concepts related to bsd services.


You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 2 comments… read them below or add one }

1 Anonymous September 9, 2004 at 10:54 pm

great!! I did need it!!
I was having problems with FTP with DWW posting to my site (www.bibivu.com) and I didn’t want restart the server…thanks a lot

Reply

2 nixcraft December 10, 2005 at 1:30 am

You can achieve same with following command

# kill -HUP $(cat /var/run/inetd.pid)

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 2 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: