LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-16-2011, 02:31 PM   #1
sneakyimp
Member
 
Registered: Dec 2004
Posts: 791

Rep: Reputation: 49
where can i locate the config file containing DAEMONS=(blah blah blah) ?


I'm looking into a problem with PHP/Apache and found this thread:
https://bbs.archlinux.org/viewtopic.php?id=78849

The solution they found apparently involves editing some files (rc.conf?) that has a line like this:
Code:
DAEMONS=(syslog-ng @network @sshd etc...)
I'm on a Mac and can't seem to locate an rc.conf file. Where can I find this info?
 
Old 02-16-2011, 06:14 PM   #2
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
Hello

From the sound of it the file you want is probably under /etc
You can use grep to find a file containing the pattern DAEMONS=

Here is a quick example that you might be able to use:

grep -r "DAEMONS=" /etc
 
Old 02-16-2011, 06:27 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by sneakyimp View Post
I'm looking into a problem with PHP/Apache and found this thread:
https://bbs.archlinux.org/viewtopic.php?id=78849

The solution they found apparently involves editing some files (rc.conf?) that has a line like this:
Code:
DAEMONS=(syslog-ng @network @sshd etc...)
I'm on a Mac and can't seem to locate an rc.conf file. Where can I find this info?
Did you encounter your problem w/ Apache on Arch-Linux? Otherwise
the file may be irrelevant to your problem.

Edit: just saw the mention of Mac; definitely not relevant to
your problem.
 
1 members found this post helpful.
Old 02-16-2011, 06:32 PM   #4
sneakyimp
Member
 
Registered: Dec 2004
Posts: 791

Original Poster
Rep: Reputation: 49
thegeek, I'm familiar with grep. Doing this finds nothing:
Code:
$prompt: cd /etc
$prompt: sudo grep -rl 'DAEMONS' *
It returns almost instantly with no results. If I make it case-insensitive, it returns an old apache conf and a postfix conf, neither of which is what I'm looking for.

tinkster, the problem I'm trying to resolve is that PHP, when run via Apache, cannot resolve DNS sometimes. Apparently the problem is caused by apache starting up before the network daemons are ready and apache ends up caching some useless DNS-related config.
 
Old 02-16-2011, 08:59 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by sneakyimp View Post
thegeek, I'm familiar with grep. Doing this finds nothing:
Code:
$prompt: cd /etc
$prompt: sudo grep -rl 'DAEMONS' *
It returns almost instantly with no results. If I make it case-insensitive, it returns an old apache conf and a postfix conf, neither of which is what I'm looking for.

tinkster, the problem I'm trying to resolve is that PHP, when run via Apache, cannot resolve DNS sometimes. Apparently the problem is caused by apache starting up before the network daemons are ready and apache ends up caching some useless DNS-related config.
Poking in the dark here as I don't do Mac, but my search terms made sense (to me,
at least); have a read of this How-To.


Cheers,
Tink
 
Old 02-16-2011, 09:08 PM   #6
sneakyimp
Member
 
Registered: Dec 2004
Posts: 791

Original Poster
Rep: Reputation: 49
Good stuff, Tink. I'm groping around in various other places regarding this same issue and that looks like the most helpful info yet. Rep++

The problem here might be that the Mac is not a constantly-running server but rather an iMac that occasionally goes to sleep, etc. This could be tricky.
 
  


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
LXer: SCO boss to customers: 'Blah. Blah. Blah' LXer Syndicated Linux News 0 02-06-2009 10:10 AM
dynamic SVG (php) on firefox: this XML blah blah eantoranz Programming 1 03-17-2006 11:58 AM
Expanding file names in a script? ../blah -> /home/blah Bebo Linux - General 24 03-29-2004 05:39 PM
newbie issues....kernel panic: blah blah blah Rio Nishida Slackware 16 11-29-2002 12:08 AM


All times are GMT -5. The time now is 02:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration