How to check apache is configured to start automatically or not after system reboot.
Take a look at man chkconfig
It's pretty straightforward, I think (but sometimes, man pages only seem straightforward because you already know the command).
It would be, for example
chkconfig httpd on
This will enable apache22 to start at boot.
To get more deeply into it, you can look at /etc/rc.d/rc.3. You'll see a bunch of symbolic links beginning with either k or s. Those with s are started at boot in runlevel 3.
Code: Select all
Take a look at man chkconfig
It's pretty straightforward, I think (but sometimes, man pages only seem straightforward because you already know the command).
It would be, for example
chkconfig httpd on
This will enable apache22 to start at boot.
To get more deeply into it, you can look at /etc/rc.d/rc.3. You'll see a bunch of symbolic links beginning with either k or s. Those with s are started at boot in runlevel 3.
Code: Select all
S64mysql -> ../init.d/mysql
S85httpd -> ../init.d/httpd
Yes, and the k in front of a link, means it doesn't start.. The numbers refer to their sequence, so in the example you give, mysql starts before httpd.
No comments:
Post a Comment