rc.d - how do I autostart inetd?

I’m trying to figure out how to get the inetd daemon to start during the earlier boot levels, or at least before the final runtime level is active. Actually, just getting it to automatically start would be good enough for me.

So how does one manage the daemon process? With GENTOO linux it’s the rc-update command; With REDHAT/SUSE its chkconfig.

I looked in /etc/rc.d and I’m wondering if rc.local (presently empty) is where I should stick commands for starting daemon processes. If it is, I’m clueless on it’s format: Is it as simple as sticking in “exec inetd”, or
does it conform to a layout standard like /etc/inetd.conf does?

Many thanks!

-e

If /etc/rc.d/rc.local does not exist, then create it (eg: ‘touch /etc/rc.d/rc.local’)
Set /etc/rc.d/rc.local to be executable (eg: ‘chmod a+x /etc/rc.d/rc.local’)
Put inside a line to start inetd (eg: ‘echo “inetd” >> /etc/rc.d/rc.local’)

Thanks. I started experimenting with it right after I sent the email and found that it got stuck on the command unless I added a “&” at the end of the line.

It’s definitely reassuring to find out that I was on the right track. Thanks for the feedback!

-d