Recipe 22.9. Starting Apache at Boot

 < Day Day Up > 

22.9.1 Problem

Okay, it's no big deal to type apachectl start. Still, you would like Apache to start automatically at boot. You installed Apache from sources where is the init script?

22.9.2 Solution

apachectl is your init script. Just drop a copy of it into /etc/init.d, or make a soft link, then add it to the runlevels in which you want it to start. (See Chapter 7 to learn how to configure runlevels.)

22.9.3 Discussion

Debian users can modify /etc/init.d/skeleton to create a startup script for any service or daemon.

22.9.4 See Also

  • http://localhost/manual/invoking.html

     < Day Day Up > 


    Linux Cookbook
    Linux Cookbook
    ISBN: 0596006403
    EAN: 2147483647
    Year: 2004
    Pages: 434

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net