Where is this file?

Discussion in 'Site & Server Administration' started by ASTRAPI, Jan 9, 2011.

  1. #1
    Hello

    I have some instructions to edit the file:

    /etc/init.d/rc.local

    But it doesn;t exist on latest Centos and Cpanel server :(

    I found these:

    /etc/rc.local
    /etc/rc.d/rc.local


    But which one is the correct?

    I want to add this command inside:

    rm -f /var/sphinx/*.spl
    /usr/local/bin/searchd --config /path/to/sphinx.conf

    So after restarting the server to clear the spl files and start the sphinx again.

    Thank you
     
    ASTRAPI, Jan 9, 2011 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello,

    On the server I checked, /etc/rc.local is symlinked to /etc/rc.d/rc.local, which means you would edit the latter.

    Chris
     
    RHS-Chris, Jan 9, 2011 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok thanks :)
     
    ASTRAPI, Jan 9, 2011 IP