LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2013, 07:46 AM   #1
harig
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Rep: Reputation: Disabled
enable echo - stream service in RHEL 6.3


OS : RHEL 6.3

How to enable echo service? chkconfig --list is not displaying echo service.

I added echo service configuration in /etc/xinetd.d and rebooted the machine but no luck.

service echo
{
type = INTERNAL
id = echo-stream
socket_type = stream
protocol = tcp
user = root
wait = no
# disable = yes
}
 
Old 04-03-2013, 08:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Did you actually install the xinetd package? It isn't installed by default.

Run "rpm -q xinetd" to see if it is installed. If not run "yum install xinetd" to install it.

On both a RHEL 6.1 and a RHEL 6.3 the /etc/xinetd.d/echo-stream config file came in with the xinetd package and has quite a bit more than you show. (Although most of it is commented out.) This is why I suspect you haven't installed the main xinetd package.

Also I note you commented out "disable = yes". The usual way to enable something in /etc/xinetd.d directory is NOT to comment out that line but rather to change the "yes" to "no".

Once you've got the /etc/xinet.d/echo-stream config file suitably modified you can run "service xinetd restart" to bounce xinetd and it will reread the files in /etc/xinetd.d. When I did a test just now simply changing the "yes" to "no" and doing the restart "chkconfig --list" changed status of echo-stream from off to on.

The default /etc/xinetd.d/echo-stream from my RHEL 6.3 (from package xinetd-2.3.14-35.el6_3.x86_64) is shown below:

Code:
# This is the configuration for the tcp/stream echo service.

service echo
{
# This is for quick on or off of the service
        disable         = yes

# The next attributes are mandatory for all services
        id              = echo-stream
        type            = INTERNAL
        wait            = no
        socket_type     = stream
#       protocol        =  socket type is usually enough

# External services must fill out the following
#       user            =
#       group           =
#       server          =
#       server_args     =

# External services not listed in /etc/services must fill out the next one
#       port            =

# RPC based services must fill out these
#       rpc_version     =
#       rpc_number      =

# Logging options
#       log_type        =
#       log_on_success  =
#       log_on_failure  =

# Networking options
#       flags           =
#       bind            =
#       redirect        =
#       v6only          =

# Access restrictions
#       only_from       =
#       no_access       =
#       access_times    =
#       cps             = 50 10
#       instances       = UNLIMITED
#       per_source      = UNLIMITED
#       max_load        = 0
#       deny_time       = 120
#       mdns            = yes

# Environmental options
#       env             =
#       passenv         =
#       nice            = 0
#       umask           = 022
#       groups          = yes
#       rlimit_as       =
#       rlimit_cpu      =
#       rlimit_data     =
#       rlimit_rss      =
#       rlimit_stack    =

# Banner options. (Banners aren't normally used)
#       banner          =
#       banner_success  =
#       banner_fail     =
}
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable MP3 audio stream playback on CentOS 6.x (x86_64) and remain sane primorec Linux - Software 3 11-17-2012 01:00 PM
enable tomcat6 service Jordan&&&& SUSE / openSUSE 2 09-21-2008 08:58 AM
Telnet service enable? mehmet_yuce Linux - Networking 1 06-30-2008 05:03 PM
Is there anyting can enable multi sound stream???? piggyaugu Linux - Software 5 05-27-2005 02:37 PM
how to enable FTP service? hedaPrakash Linux - Newbie 7 07-17-2003 10:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration