Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Just 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

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    4
    Quote Originally Posted by chaosless View Post
    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

  4. #4
    Just Joined!
    Join Date
    Jul 2010
    Posts
    53
    you modified the test to see if there is an executable:

    Code:
    [ -x /sbin/syslogd ] || exit 5
    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.

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Posts
    4
    cheers chaosless

    all sorted now

    thanks for all the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •