Starting httpd on startup

Discussion in 'Networking' started by bernies, Mar 23, 2009.

  1. bernies

    bernies

    Joined:
    Dec 8, 2008
    Messages:
    5
    Likes Received:
    0
    Ok, another issue setting up my netbook for development: I have httpd installed and running fine, but it doesn't start automatically at boot.
    I can start it no problem with:
    service httpd start

    chkconfig --list httpd gives me:
    httpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:n 6:eek:ff

    I'm assuming runlevel 5 is the one I should be starting it for, although 'runlevel' just gives me 'unknown''??

    The startup script in /etc/rc5.d is S85httpd (85 is the default). This will be started before NetworkManager, etc., but I wouldn't have thought that would be a problem??

    I can't find any error messages in any of the logs, but I'm not really sure where I should be looking.

    Can someone help me figure out why httpd doesn't start on boot?

    Thanks,
    Bernie
     
    bernies, Mar 23, 2009
    #1
  2. bernies

    fweigel

    Joined:
    Oct 24, 2008
    Messages:
    118
    Likes Received:
    0
    Linpus doesn't use the standard sysv startup, so chkconfig doesn't work. Use a more "bsd"ly way -- add it to /etc/rc.local
     
    fweigel, Mar 25, 2009
    #2
  3. bernies

    bernies

    Joined:
    Dec 8, 2008
    Messages:
    5
    Likes Received:
    0
    Ok, I could do that, but then how do I get it to shut down automatically when I shut down? Is it ok to just rely on it receiving SIGKILL or SIGTERM or whatever? I'm running mysqld as well, and don't want to risk any data corruption.
     
    bernies, Mar 25, 2009
    #3
  4. bernies

    fweigel

    Joined:
    Oct 24, 2008
    Messages:
    118
    Likes Received:
    0
    Yes, its ok (for apache and mysql) to rely on the normal shutdown signals.
     
    fweigel, Mar 30, 2009
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.