Hi all,
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 :-(
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
/etc/rc.d/init.d/apache appears to be the same as other init scripts but obviously catering for apache. The variable pointing at the executable is fine, but then I don't think this is the problem since I don't receive any messages whlie booting.
In fact if I didn't know better, I would think that the code above isn't being executed whatsoever.
Before you ask, ls -l /etc/rc.d/init.d/apache: -rwxr-xr-x 1 root root 504 Oct 8 23:46 apache
Can anyone make sense of this?
Regards,
On Wed, Dec 08, 1999 at 02:27:42PM +0000, jg@cyberstorm.demon.co.uk wrote:
In fact if I didn't know better, I would think that the code above isn't being executed whatsoever.
/etc/rc.d/rc.local? Why not just symlink in the apache script from /etc/rc.d/rc<number>.d (I think) for the appropriate runlevels?
Just an idea.
MJR
[ 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' ]
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' ]
On Sun, 12 Dec 1999 xsprite@bigfoot.com wrote:
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.
Hmm. This looks like the solution, I symlinked like Mark said into rc3.d and found those odd-numbered scripts.
I'll try the chkconfig tonight, providing my Java Assignment doesn't take long.
James.
[ 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' ]
jg@cyberstorm.demon.co.uk wrote:
Hi all,
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 :-(
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
/etc/rc.d/init.d/apache appears to be the same as other init scripts but obviously catering for apache. The variable pointing at the executable is fine, but then I don't think this is the problem since I don't receive any messages whlie booting.
In fact if I didn't know better, I would think that the code above isn't being executed whatsoever.
Before you ask, ls -l /etc/rc.d/init.d/apache: -rwxr-xr-x 1 root root 504 Oct 8 23:46 apache
Can anyone make sense of this?
I know sod all about RH, and anyway others have addressed that part... However, look in /var/log/httpd.error_log and see why (if) apache isn't starting (this is for SuSE, at least).
Cheers, Laurie.
[ 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' ]