Results 1 to 5 of 5
Hi,
I was wonder if it was possible for when you restart the server or if the server crashed and when the syslogd service start up it would start with ...
- 08-20-2010 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 4
[SOLVED] syslogd deamon
Hi,
I was wonder if it was possible for when you restart the server or if the server crashed and when the syslogd service start up it would start with the following parameters
/sbin/syslogd -m 0 -r
cheers
Huy
- 08-20-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 53
modify /etc/init.d/syslog
on suse can just modify /etc/sysconfig/syslog b/c that is read by the init.d script
- 08-23-2010 #3Just Joined!
- Join Date
- Apr 2008
- Posts
- 4
I modded the file /etc/init.d/syslog
original
start() {
[ -x /sbin/syslogd ] || exit 5
[ -x /sbin/klogd ] || exit 5
modified to
start() {
[ -x /sbin/syslogd -m 0 -r ] || exit 5
[ -x /sbin/klogd ] || exit 5
and when i try to start the service it comes up with
/etc/init.d/syslog start
/etc/init.d/syslog: line 20: [: too many arguments
This is on Centos 5.1
cheers
huy
- 08-23-2010 #4Just Joined!
- Join Date
- Jul 2010
- Posts
- 53
you modified the test to see if there is an executable:
somewhere after that it will actually be starting syslogd. i don't have centos but shoule be pretty obvious. if you're still struck then past the entire start() { } function.Code:[ -x /sbin/syslogd ] || exit 5
- 08-24-2010 #5Just Joined!
- Join Date
- Apr 2008
- Posts
- 4
cheers chaosless
all sorted now
thanks for all the help




