Hi (This message is part of a long running saga - "Dave displays his ignorance") I'm setting up an Intranet server based in Suse 8.0. I've not installed X windows. I want to change the boot options eg run Apache. I'm trying to add entries in /etc/init.d/rc3.d using ln -s /etc/init.d/rc3.d/S30apache -> ../apache but all I get is error messages. Should I have a file called S30apache before I link it? I've managed to do this before and I think I'm doing something silly ..... but what? Dave I
On Friday 07 June 2002 10:10 am, Dave Williams wrote:
Hi (This message is part of a long running saga - "Dave displays his ignorance")
Hi Dave, Do you have chkconfig on Suse? If so, try using that it's a lot easier.
I'm setting up an Intranet server based in Suse 8.0. I've not installed X windows. I want to change the boot options eg run Apache. I'm trying to add entries in /etc/init.d/rc3.d using
ln -s /etc/init.d/rc3.d/S30apache -> ../apache
try ln -s ./apache /etc/init.d/rc3.d/S30apache
but all I get is error messages. Should I have a file called S30apache before I link it? I've managed to do this before and I think I'm doing something silly ..... but what?
Dave
I
-- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
On 07 Jun, Gary Stainburn
Do you have chkconfig on Suse? If so, try using that it's a lot easier.
Yes I do ie. I can get a display of configuration settings. How is that used to change the settings? snip
try
ln -s ./apache /etc/init.d/rc3.d/S30apache
Thanks Gary Dave
Hi Dave, sorry for the delay, but a small miracle has happened - I've had a week off. if you 'man chkconfig' it will show you how to use it to turn on/off services - including inetd/xinetd stuff. For apache you'd do something like chkconfig --level 35 apache on to turn on apache for runlevels 3 and 5 Gary On Friday 07 June 2002 7:09 pm, Dave Williams wrote:
On 07 Jun, Gary Stainburn
wrote: Do you have chkconfig on Suse? If so, try using that it's a lot easier.
Yes I do ie. I can get a display of configuration settings. How is that used to change the settings?
snip
try
ln -s ./apache /etc/init.d/rc3.d/S30apache
Thanks Gary
Dave
-- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
Dave
I'm setting up an Intranet server based in Suse 8.0. I've not installed X windows. I want to change the boot options eg run Apache. I'm trying to add entries in /etc/init.d/rc3.d using
ln -s /etc/init.d/rc3.d/S30apache -> ../apache
You've got it the wrong way round - linux commands usually work on the basis of command source (which must exist) destination (which doesn't necessarily exist) So, for your symbolic link, you need the following to be true: 1. Be sitting in /etc/init.d/rc3.d 2. Issue the following command ln -s ../apache ./S30apache Furthermore, remember that the order in which activities happen is entirely governed by the alphanumeric order of the 'files' in rc3.d. So S30xxxx will definitely happen after S12xxxx and before S31xxxx. You should also provide another link to shut the apache server down correctly, so ln -s ../apache ./S05apache is likely to be useful. (Don't take my number for gospel - investigate and ensure that apache shuts down before processes on which it depends.) Good luck Andrew -- ******************************************************************************** E-Mail: aray@computerpark.co.uk ********************************************************************************
Dave Please forgive my stupid mistake! The correct info for shutting down apache is:
You should also provide another link to shut the apache server down correctly, so
ln -s ../apache ./K05apache
I just didn't spot the lack of a K!!!! Andrew -- ******************************************************************************** E-Mail: aray@computerpark.co.uk ********************************************************************************
On 07 Jun, Andrew Ray
So, for your symbolic link, you need the following to be true:
1. Be sitting in /etc/init.d/rc3.d 2. Issue the following command
ln -s ../apache ./S30apache
Thanks Andrew - I knew I was doing something silly!
You don't need to get involved with any of this stuff if you installed apache from the SuSE 8 distribution. The run level editor in Yast2 allows you to choose what services run at what run levels via the gui (or in your case the text-gui). You only need to get involved with the rc.d stuff if you have installed Apache from source yourself, or you really want to mess around in there for some other reason. Cheers -- Phil Driscoll
On 07 Jun, Phil Driscoll
You don't need to get involved with any of this stuff if you installed apache from the SuSE 8 distribution. The run level editor in Yast2 allows you to choose what services run at what run levels via the gui (or in your case the text-gui).
You only need to get involved with the rc.d stuff if you have installed Apache from source yourself, or you really want to mess around in there for some other reason.
Cheers -- Phil Driscoll
I would have used this (as in Yast Suse 7.x) but everything keeps moving on the new versions - a common complaint. Thanks Dave
Hi (This message is part of a long running saga - "Dave displays his ignorance")
I'm setting up an Intranet server based in Suse 8.0. I've not installed X windows. I want to change the boot options eg run Apache. I'm trying to add entries in /etc/init.d/rc3.d using
ln -s /etc/init.d/rc3.d/S30apache -> ../apache
but all I get is error messages. Should I have a file called S30apache
What error messages do you get?
before I link it? I've managed to do this before and I think I'm doing something silly ..... but what?
Have you installed apache? Doing this should install the right symbolic links. You could try "cp -a /etc/init.d/rc5.d/*apache /etc/init.d/rc3.d" if SuSE have messed things up so apache only runs at run level 5. -- Mark Evans St. Peter's CofE High School Phone: +44 1392 204764 X109 Fax: +44 1392 204763
participants (5)
-
Andrew Ray
-
Dave Williams
-
Gary Stainburn
-
Mark Evans
-
Phil Driscoll