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
Printable View
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
modify /etc/init.d/syslog
on suse can just modify /etc/sysconfig/syslog b/c that is read by the init.d script
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
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
cheers chaosless
all sorted now
thanks for all the help