LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 03:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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 06:48 AM.
 
Old 03-03-2010, 03:37 AM   #3
quanba
Member
 
Registered: Jul 2009
Posts: 41

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:33 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