init.d question

Posted on 2005-04-28
Last Modified: 2010-04-20
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?
Question by:dissolved
    LVL 34

    Accepted 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.

    Author Comment

    thanks a lot man. great answer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now