On Wed, 8 Dec 1999 jg@cyberstorm.demon.co.uk wrote:
Since I'm coding LNC every day it makes sense to get apache going on boot. However, trying to get this going through RH6.0's rc scripts is proving less than entertaining :-(
The hole SysV init process is like spaghetti.
In /etc/rc.d/rc.local I have put the following in:
if [-f /etc/rc.d/init.d/apache ]; then /etc/rc.d/init.d/apache start fi
[...]
Can anyone make sense of this?
RedHat Linux includes a program called chkconfig, specifically for controlling the SysV init process. Instead of executing init.d/apache from rc.local, it's better (and easier) to use chkconfig. eg
chkconfig --level <runlevel> apache on
Which creates a symlink in /etc/rc.d/rc<runlevel>.d/ (called S??apache) as well as symlinks in other rcx.d/ directories called K??apache to make sure apache is killed when changing to another run level. (/etc/rc.d/rc executes these symlinks)
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]