• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

init.d question

I've noticed some people say to edit inetd.conf  to start/stop services. Some say to do a cd /etc/init.d  and  edit the services manually (ie:   vi sshd)

Which is it?
1 Solution
Depends on the server, and which particular NIX/Linux you're dealing with.

For OSes that launch "standard" services (like daytime, chargen, telnet, ftp, xwindows server, et. al.) as a function of the TCP/IP stack, this is usually done in inetd.conf. These specific services can be managed by editing that file and SIGHUPping inetd.

For services that a particular inetd doesn't natively provide, or if the admin wants to use a different chunk of software for that function, then these daemons are typically built separately, and invocation handled via scripts usually stored in /etc/init.d (or /etc/rc.d/init.d). sshd and httpd are generally good example of these services - and even when an inetd does provide, say, FTP, many admins will still disable it in /etc/inetd.conf and build an FTP server to use, usually for security reasons.
dissolvedAuthor Commented:
thanks a lot man. great answer

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now