LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2005, 11:47 AM   #1
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
scripting in /etc/sysconfig/syslog file?


Hi,

I want to be able to start my syslogd with different syslog.conf file depending on certain conditions ...

Here's a simpified example of what I am doing ...

# cd /etc/sysconfig
# cat syslog
PRIMARY_CONF=/etc/syslog.cong.primary

HOSTNAME=`hostname`
if [ $HOSTNAME = 'XYZ' ]
then
SYSLOGD_OPTIONS="-r -x -m 0 -f $PRIMARY_CONF"
else
SYSLOGD_OPTIONS="-r -x -m 0"
fi

...


But when I do my /etc/init.d/syslog syslogd fails to start. Since I am dealing with the syslogd it is kinda of hard to debug. Has anyone here ever tried to do something like this? Is it just not possible to do anything besides setting env. variables in the /etc/sysconfig/* files?

Thanks
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no systemid file in etc/sysconfig/rhn kamii47 Red Hat 2 04-21-2005 02:54 PM
decode my syslog file epoo Slackware 6 04-04-2005 06:30 PM
etc/sysconfig/iptables file explinations Junior24 Linux - General 3 12-07-2004 01:35 PM
May I use variables inside /etc/sysconfig/iptables file?...how? leo Linux - Security 2 09-24-2004 09:26 PM
Where is the SuSE 9.0 /etc/sysconfig/network file? hnash53 Linux - Networking 1 02-07-2004 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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