473,713 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

do I really need to insert links into rc?

Hi,

I recently installed SuSE 9.3 on x86, and it seems to contain scripts
"apache2" and "mysql" in the /etc/init.d folder. However, these two (Apache
or MySQL) are not running when I fresh reboot the machine. I am having to
execute a "./apache2 start" and "./mysql start" every time I reboot.

I am a newbie when it comes to unix admin, and I am trying to read up about
the rc scripts and how they link into the scripts under the /etc/init.d
folder. Before I rush and do what appears "natural" to me (create a S?? and
K?? links in the rc?.d), I'd like to find out some basic questions it
raises:

1. Why would the install place the apache2 and mysql scripts under the
/etc/init.d but not have any entries in any of the rc scripts?
2. What do I need to do (anything specific to SuSE) to make the apache and
mysql launch on reboot? Which rcN gets it?

Thanks!
Angus

Aug 28 '05 #1
4 1806
"Spare Brain" <sp*********@ya hoo.com> wrote in message
news:_4******** ***********@tor nado.tampabay.r r.com...
Hi,

I recently installed SuSE 9.3 on x86, and it seems to contain scripts
"apache2" and "mysql" in the /etc/init.d folder. However, these two
(Apache
or MySQL) are not running when I fresh reboot the machine. I am having to
execute a "./apache2 start" and "./mysql start" every time I reboot.

I am a newbie when it comes to unix admin, and I am trying to read up
about
the rc scripts and how they link into the scripts under the /etc/init.d
folder. Before I rush and do what appears "natural" to me (create a S??
and
K?? links in the rc?.d), I'd like to find out some basic questions it
raises:

1. Why would the install place the apache2 and mysql scripts under the
/etc/init.d but not have any entries in any of the rc scripts?
2. What do I need to do (anything specific to SuSE) to make the apache and
mysql launch on reboot? Which rcN gets it?

Thanks!
Angus

After wading through many (many) different sites, I'd need to do this, even
though apache2 and mysql came packaged:

chkconfig --add apache2
chkconfig --add mysql

And then reboot for it to take effect (or do a /etc/init.d/<program> start
if you don't want a reboot right away).

This answers #2 above, but #1 is still open.

Angus
Aug 28 '05 #2
Spare Brain wrote:
1. Why would the install place the apache2 and mysql scripts under the
/etc/init.d but not have any entries in any of the rc scripts?
That effectively installs the products, but does not configure them to
start automatically at boot time at any runlevel. This might be
considered equivalent to a Windows Service being set to "Manual" startup.
2. What do I need to do (anything specific to SuSE) to make the apache and
mysql launch on reboot? Which rcN gets it?


The `chkconfig' command can help. It looks in the script for a line
describing a recommended runlevel at which to install links, and what
number to use for the startup order. Chkconfig is not specific to SuSE,
it's common on Linux and similar systems.

Regards,
Bill K.
Aug 28 '05 #3
Spare Brain wrote:
"Spare Brain" <sp*********@ya hoo.com> wrote in message
news:_4******** ***********@tor nado.tampabay.r r.com...
Hi,

I recently installed SuSE 9.3 on x86, and it seems to contain scripts
"apache2" and "mysql" in the /etc/init.d folder. However, these two
(Apache
or MySQL) are not running when I fresh reboot the machine. I am having to
execute a "./apache2 start" and "./mysql start" every time I reboot.

I am a newbie when it comes to unix admin, and I am trying to read up
about
the rc scripts and how they link into the scripts under the /etc/init.d
folder. Before I rush and do what appears "natural" to me (create a S??
and
K?? links in the rc?.d), I'd like to find out some basic questions it
raises:

1. Why would the install place the apache2 and mysql scripts under the
/etc/init.d but not have any entries in any of the rc scripts?
2. What do I need to do (anything specific to SuSE) to make the apache and
mysql launch on reboot? Which rcN gets it?

Thanks!
Angus


After wading through many (many) different sites, I'd need to do this, even
though apache2 and mysql came packaged:

chkconfig --add apache2
chkconfig --add mysql

And then reboot for it to take effect (or do a /etc/init.d/<program> start
if you don't want a reboot right away).

This answers #2 above, but #1 is still open.

Angus


Angus has done a good job with #2. I'd add that you should follow up
the chkconfig add with

chkconfig --level 2345 apache2 on
chkconfig --level 2345 mysql on

This will have the effect of apache2 and mysql starting at each run
level, 2, 3, 4, 5.

As for #1, I have only a guess. These are packages usually run on
servers, not desktops. Did you configure for a desktop? Also, I'd
argue that SuSE leaving it to you to decide and figure out how to turn
these on results in a less vulnerable Internet, on average.

Any service you run may be subvertible. Therefore, the fewer you run,
the more secure, in general. A good exercise for you, since you're new,
is to run

chkconfig --list |grep on

For every line that comes back, prove to yourself that you know what the
service is and why you need it. If you don't recognise it, you may not
need it. Read the man page for it. If you're not sure, turn it off and
see what breaks. If nothing breaks, leave it off. To turn a service
off with chkconfig

chkconfig --level 2345 the_name_of_the _service off

Once you've done that, the service will not be started anymore for the
run levels you've turned if off for. You still will have to kill the
running instance of the process with

service the_name_of_the _service stop

Good luck.
Aug 31 '05 #4
Spare Brain wrote:

1. Why would the install place the apache2 and mysql scripts under the
/etc/init.d but not have any entries in any of the rc scripts?


As others have already answered #2, I'll try to answer #1 for you as
best as I can.

Different installations require different things. There are quite a few
ways to have your /sbin/init (or even /etc/init on older systems!)
configured to allow new packages to run. Mostly, there is the BSD way
of doing things, and the AT&T way of doing things. However, I never
remember which is which, because many Linux distributions emulate one or
the other, or both.

In one version, you can use /etc/rc.d/script_name_her e and those scripts
are directly run at startup and shutdown, with varying parameters, and
some scripts take more then just the default "start" and "stop". For
example, for Apache and MySQL on my system, the following is run by my
startup scripts when I boot up:

/etc/rc.d/rc.mysql start
/etc/rc.d/rc.httpd start

In the other one, however, you have the complex structure of symlinks
that begin with S* and K*, located in different directories which
signify the runlevel (e.g., /etc/rc.2 for runlevel two). This yields a
slightly more flexible configuration, however, it also can lead to
disaster if you forget to add something to more then one runlevel if
needed, or if you put things in that you should... essentially it adds
more points of failure to the init system. It depends on shell globbing
features for it to work, for starters, and it also depends on the
administrator wanting to spend the time to really tweak the system.
This is good if you use actually use different runlevels for something
useful; for example, Runlevel 2 is multi-user, and Runlevel 3 is more of
a high-load multi-user, or, in the case of a testing box, you can use
runlevels to switch from a set of production/stable servers, to a set of
testing/unstable/development servers that you're trying to work on,
debug, whatever. Largely enough, though, it's a PITA.

Slackware Linux, FWIW, provides the former behavior by default, and
impelements the latter using a shell script to emulate the full
functionality. This should be used with caution, however, as it's not
perfect. I am not sure how SuSE does things, but I'm sure that it can
probably be configured to do either/or, since you can have one script
that is linked to, managing a /etc/rc.d/rc.* configuration similar to
what is native (and, simpler) in many systems. For the most part, in
systems that are "live," and use the former configuration that I
mentioned, they will run those scripts for all runlevels except for 0,
1, and 6, assuming that on your system you're not using a terribly
heavily customized configuration: These runlevels typically represent
halt, single-user mode, and reboot, respectively.

HTH,
Michael
Aug 31 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4669
by: Tom | last post by:
Please help. I need a quick little scrpit to place on a web page that will count how many days have passed since January 1, 1970. I have ZERO experience writing ANY scripts. Anyone have any suggestions? As for what is displayed on the screen, I just want it to say: Today is: 12578 (or however many days have passed since that date.)
5
3245
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and I use an argument to difference between an 'edit' vs. and 'add. But since I have field validation on both 'footer' and 'edit' columns I can't submit my edits since the footer validation kicks in.If I take the validation off then the both work fine...
2
4719
by: clinttoris | last post by:
Hello, If someone could help me it would be appreciated as I am not having much luck. I'm struggling with my asp code and have some questions relating to asp and oracle database. First question. I have a web survey that I am working on and have successfully dynamically taken the info from a database, displayed it on the screen and then taken the users answers and inserted them into a
1
3332
by: rllioacvuher | last post by:
I need help with a program. I have implemented that following header file with an unordered list using one array, but i need to be able to use an ordered list and 2 arrays (one for the links and one to use as an index to the freearray cells). Here is the exact problem specifications: Create an ordered list template class named OLType to implement an ordered list with operations of insert, remove, print, empty, full, size. The storage...
20
4278
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
2
1372
by: Sells, Fred | last post by:
I've got a ~100 page document I assemble from ~30 OOo .odt files with some search and replace functions. I then produce a PDF. So far so good. Now I need to get a barcode from our internal website and insert that. The barcode will vary based on some parameters. Our internal site provides a ..jpg image (or .gif) based on those parameters. Can anyone provide a snippet or some pointers on how to do this. I've googled it to death and...
6
1827
by: pbd22 | last post by:
Hi. I am trying to insert a zero into the below table and I am being told that: Cannot insert the value NULL into column 'UsageToday', table DB.dbo.Pub_Count'; column does not allow nulls. UPDATE fails. The statement has been terminated. What I am trying to insert is a string that I convert into an int
3
2965
by: bbatson | last post by:
Hello, Suppose I have a table called "Links_Tbl" with a column titled "Link" and a text box on a form called "txtlink". I am finding that the following code is not making the uploaded links active: sqlinsert = "INSERT INTO Links_Tbl (Link) VALUES ('" & me.txtlink & "');" db.execute(sqlinsert) It uploads the text just fine but when the links are displayed on subform in datasheet view, clicking on them does nothing. If I input the...
2
1271
by: global2009 | last post by:
Hello I am working on a site and I am trying to insert an onClick function into the JS, so users can click to the different links. Well, when I do add the onClick function the links work but the java slider of the images stop, when I take out the onClick function links don't work but slider works? I am mind dead trying to work with this. I don't know if the function needs to be in a separate <script> </script> or what. If anyone wants to look...
0
8701
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9068
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9009
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7942
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2103
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.