LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2010, 03:47 AM   #1
quanba
Member
 
Registered: Jul 2009
Posts: 41

Rep: Reputation: 15
RHEL5: includedir option in /etc/xinetd.conf does not take effect


Hi there,

When I was configure xinetd service, I tried to modify the includedir option in /etc/xinetd.conf to another directory. For example:

defaults
{

}

includedir /etc/other-directory

I restarted xinetd using : service xinetd restart

I tested configuration using: chkconfig chargen-stream on/off but the configuration is still changed in /etc/xinetd.d/chargen-stream, not in the new location /etc/other-directory/chargen-stream.

Please give me some advices.
Thanks in advance.
 
Old 03-01-2010, 04:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

It looks like /etc/xinetd.d is hardcoded into chckonfig:
Quote:
strings /sbin/chkconfig |grep xinetd

/etc/init.d/xinetd reload >/dev/null 2>&1
xinetd
/etc/xinetd.d
xinetd based services:
/etc/xinetd.d/%s
So what you can do, is to symlink /etc/xinetd.d to /etc/other-directory

Regards

Last edited by bathory; 03-01-2010 at 07:48 AM.
 
Old 03-03-2010, 04:37 AM   #3
quanba
Member
 
Registered: Jul 2009
Posts: 41

Original Poster
Rep: Reputation: 15
Hi bathory, thanks alot for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
inetd.conf and xinetd.conf files are missing Swagata Paul Linux - Software 2 07-02-2008 04:12 AM
inetd.conf versus xinetd.conf jedimastermopar Red Hat 1 07-23-2007 03:17 PM
Xinetd ( no effect on the system) student55 Linux - Security 1 09-17-2006 08:59 PM
why the override-expire option is not effect ? jiawj Linux - Networking 0 04-11-2006 06:04 AM
convert from inetd.conf to xinetd.conf linuxturtle Linux - Networking 7 11-12-2003 05:23 AM


All times are GMT -5. The time now is 04:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration