Add/Remove/Start/Stop services on CentOS

keith smith klsmith2020 at yahoo.com
Fri Jun 25 13:19:52 MST 2010


Your observation is accurate.  I have not read about it yet.  

------------------------

Keith Smith

--- On Fri, 6/25/10, Eric Shubert <ejs at shubes.net> wrote:

From: Eric Shubert <ejs at shubes.net>
Subject: Re: Add/Remove/Start/Stop services on CentOS
To: plug-discuss at lists.plug.phoenix.az.us
Date: Friday, June 25, 2010, 12:13 PM

It appears that you don't understand what xinetd is/does.
http://aplawrence.com/Basics/xinetd.html

Personally, I run vsftpd, which does not use xinetd at all. In fact, I've removed xinetd from most of my servers.

-- -Eric 'shubes'

keith smith wrote:
> 
> I think I understand run levels. Why then was FTP started under /etc/xinetd.d/ and to keep it from running I had the remove the startup script from /etc/xinetd.d/ ?
> 
> Wouldn't that make any service launched by /etc/xinetd.d/ as standalone?
> 
> So if I wanted I could start FTP by associating it with a run level.  What is the difference.  In other words why would it make a difference?
> 
> 
> 
> ------------------------
> Keith Smith
> 
> --- On *Thu, 6/24/10, Bryan O'Neal /<Bryan.ONeal at TheONealAndAssociates.com>/* wrote:
> 
> 
>     From: Bryan O'Neal <Bryan.ONeal at TheONealAndAssociates.com>
>     Subject: Re: Add/Remove/Start/Stop services on CentOS
>     To: "Main PLUG discussion list" <plug-discuss at lists.plug.phoenix.az.us>
>     Date: Thursday, June 24, 2010, 8:01 PM
> 
>     Run levels indicate how the service should auto start. If you want
>     it to always listen no mater how you boot the machine (into which
>     run level) the you add it to all run levels. If you want to think of
>     it like this lower run levels are like safe mode in windows.
> 
>     On Thu, Jun 24, 2010 at 7:59 PM, keith smith <klsmith2020 at yahoo.com
>     </mc/compose?to=klsmith2020 at yahoo.com>> wrote:
> 
> 
>         I thought there was two way to launch a service or process. 1)
>         init.d associated with a run level or 2) s service that is
>         always listening.
> 
>         If I am wrong please point that out to me.
> 
>         Thanks!
> 
> 
>         ------------------------
>         Keith Smith
> 
>         --- On *Thu, 6/24/10, Bryan O'Neal
>         /<Bryan.ONeal at TheONealAndAssociates.com>/* wrote:
> 
> 
>             From: Bryan O'Neal <Bryan.ONeal at TheONealAndAssociates.com>
>             Subject: Re: Add/Remove/Start/Stop services on CentOS
>             To: "Main PLUG discussion list"
>             <plug-discuss at lists.plug.phoenix.az.us
>             </mc/compose?to=plug-discuss at lists.plug.phoenix.az.us>>
>             Date: Thursday, June 24, 2010, 7:27 PM
> 
> 
>             I am afraid I don't understand?
>             Do you mean you have a service script but you want to be
>             able to use the service command?
> 
>             On Thu, Jun 24, 2010 at 7:16 PM, keith smith
>             <klsmith2020 at yahoo.com
>             <http://mc/compose?to=klsmith2020@yahoo.com>> wrote:
> 
> 
>                 If I use chkconfig to register a service then that
>                 service is associated with a run level.  What if I do
>                 not want the service to be associated with a run level,
>                 but to be stand alone?
> 
>                 ------------------------
>                 Keith Smith
> 
>                 --- On *Thu, 6/24/10, Bryan O'Neal
>                 /<Bryan.ONeal at TheONealAndAssociates.com>/* wrote:
> 
> 
>                     From: Bryan O'Neal
>                     <Bryan.ONeal at TheONealAndAssociates.com>
>                     Subject: Re: Add/Remove/Start/Stop services on CentOS
>                     To: "Main PLUG discussion list"
>                     <plug-discuss at lists.plug.phoenix.az.us
>                     <http://mc/compose?to=plug-discuss@lists.plug.phoenix.az.us>>
>                     Date: Thursday, June 24, 2010, 6:53 PM
> 
> 
>                     use chkconfig to register /etc/init.d as services
>                     chkconfig --list
>                     chkconfig --level [run levels] [service] [on/off]
>                     ie. chkconfig --level 345 httpd on
> 
> 
> 
>                     On Thu, Jun 24, 2010 at 6:45 PM, keith smith
>                     <klsmith2020 at yahoo.com
>                     <http://mc/compose?to=klsmith2020@yahoo.com>> wrote:
> 
> 
> 
>                         More questions so I can make sure I understand
>                         what I did and why.  Thank you for your help!
> 
> 
>                         All services are standalone processes, that are
>                         started via start up code found in /etc/xinetd.d/
> 
> 
>                         To add a standalone process put it's start up
>                         code in /etc/xinetd.d/
> 
> 
>                         To remove a process from running at start-up or
>                         to stop it all together remove it's start-up
>                         code from /etc/xinetd.d/
> 
> 
>                         Then restart xinetd : /etc/init.d/xinetd restart
>                         (if installed)
> 
> 
>                         Other commands
> 
>                         - - - - - - - - - - - - - - - - - - - - - -
> 
>                         Stop xinetd: /etc/init.d/xinetd stop (if installed)
> 
>                         Start xinetd /etc/init.d/xinetd start (if installed)
> 
>                         Verify that xinetd is running :
>                         /etc/init.d/xinetd status (if installed)
> 
>                         See what services are running : /sbin/service
>                         --status-all
> 
> 
>                         To check Apache, which is running as a service,
>                         issue : /sbin/service httpd status
> 
> 
>                         Services are stand alone and run no matter what
>                         run level the system is on?
> 
> 
>                         What if xinetd is not installed?  Such is the
>                         case on my Fedora box.
> 
>                         Thanks!
> 
>                         ------------------------
>                         Keith Smith
> 
> 
> 
>                         ---------------------------------------------------
>                         PLUG-discuss mailing list -
>                         PLUG-discuss at lists.plug.phoenix.az.us
>                         <http://mc/compose?to=PLUG-discuss@lists.plug.phoenix.az.us>
>                         To subscribe, unsubscribe, or to change your
>                         mail settings:
>                         http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
>                     -----Inline Attachment Follows-----
> 
> 
>                     ---------------------------------------------------
>                     PLUG-discuss mailing list -
>                     PLUG-discuss at lists.plug.phoenix.az.us
>                     <http://mc/compose?to=PLUG-discuss@lists.plug.phoenix.az.us>
>                     To subscribe, unsubscribe, or to change your mail
>                     settings:
>                     http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
>                 ---------------------------------------------------
>                 PLUG-discuss mailing list -
>                 PLUG-discuss at lists.plug.phoenix.az.us
>                 <http://mc/compose?to=PLUG-discuss@lists.plug.phoenix.az.us>
>                 To subscribe, unsubscribe, or to change your mail settings:
>                 http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
>             -----Inline Attachment Follows-----
> 
>             ---------------------------------------------------
>             PLUG-discuss mailing list -
>             PLUG-discuss at lists.plug.phoenix.az.us
>             <http://mc/compose?to=PLUG-discuss@lists.plug.phoenix.az.us>
>             To subscribe, unsubscribe, or to change your mail settings:
>             http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
>         ---------------------------------------------------
>         PLUG-discuss mailing list -
>         PLUG-discuss at lists.plug.phoenix.az.us
>         </mc/compose?to=PLUG-discuss at lists.plug.phoenix.az.us>
>         To subscribe, unsubscribe, or to change your mail settings:
>         http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
>     -----Inline Attachment Follows-----
> 
>     ---------------------------------------------------
>     PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>     </mc/compose?to=PLUG-discuss at lists.plug.phoenix.az.us>
>     To subscribe, unsubscribe, or to change your mail settings:
>     http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100625/14868e93/attachment.html>


More information about the PLUG-discuss mailing list