What scenarios could occur as a result of changing the runlevel of the system?
What will be an ideal response?
When the runlevel is changed, init calls the rc script with the new runlevel as parameter (such as /etc/init.d/rc 3). The /etc/init.d/rc script examines the /etc/init.d/rccurrentrl.d/ and /etc/init.d/rcnewrl.d/ directories and determines what to do.
For example, suppose you change from runlevel 5 to runlevel 3. There are three possible scenarios that could occur as a result:
• There is a Kxx link for a certain service in /etc/init.d/rc5.d/ and there is an Sxx link in /etc/init.d/rc3.d/ for the same service. In this case, the service is neither started nor stopped because the service should run in both runlevels. Therefore, the service's script in /etc/init.d/ is not called at all.
• There is a Kxx link for a certain service in /etc/init.d/rc5.d/, but there is no corresponding Sxx link in /etc/init.d/rc3.d/. In this case, the script /etc/init.d/service is called with the stop parameter and the service is stopped.
• There is an Sxx link in /etc/init.d/rc3.d/ and there is no corresponding Kxx link for the service in /etc/init.d/rc5.d/. In this case, the script /etc/init.d/service is called with the start parameter and the service is started.
You might also like to view...
The Total row of a table is a record
Indicate whether the statement is true or false
Consider the Set interface in the java.util package. Write preconditions and post conditions in OCL for the following operations:
The constraints below assume that the association between the list and its contained elements is called elements. a. int size() returns the number of elements in the set. b. void add(Object e) adds an object to the set. If the object is already in the set, does nothing. c. void remove(Object e) removes an object from the set d. boolean contains(Object e) returns true if the object is contained in the set.
Scenarios can be created without a formula or function on your worksheet
Indicate whether the statement is true or false.
The rows in the tables are called ____________________.
Fill in the blank(s) with the appropriate word(s).