Problem

In this hands-on project, you examine the system runlevel directories, start and stop da...

In this hands-on project, you examine the system runlevel directories, start and stop daemons manually, and configure daemon startup by runlevel.

1. Once your system has booted, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type ls /etc/rc.d and press Enter. What directories are listed? What is contained within each directory?

3. At the command prompt, type ls –F /etc/rc.d/rc0.d and press Enter. What type of files are listed? In which order will these files be executed by the init daemon? How many of these start with K compared to S? Why?

4. At the command prompt, type ls –F /etc/rc.d/rc5.d and press Enter. What types of files are listed? How many of these start with K compared to S? Why?

5. At the command prompt, type ls –F /etc/rc.d/init.d and press Enter. What types of files are listed? What happens when you execute a file from this directory?

6. At the command prompt, type /etc/rc.d/init.d/atd stop and press Enter. What happened?

7. At the command prompt, type /etc/rc.d/init.d/atd start and press Enter. What happened?

8. At the command prompt, type /etc/rc.d/init.d/atd restart and press Enter. What happened?

9. At the command prompt, type service atd stop and press Enter to perform the same action as Step 6.

10. At the command prompt, type service atd start and press Enter to perform the same action as Step 7.

11. At the command prompt, type service atd restart and press Enter to perform the same action as Step 8.

12. At the command prompt, type chkconfig --list httpd and press Enter. In which runlevels are Apache (httpd) daemons started?

13. At the command prompt, type chkconfig --level 235 httpd on and press Enter Next, type chkconfig --list httpd and press Enter. In which runlevels are Apache (httpd) daemons started?

14. At the command prompt, type chkconfig --level 23 httpd off and press Enter. Next, type chkconfig --list httpd and press Enter. In which runlevels are Apache (httpd) daemons started?

15. At the command prompt, type ntsysv --level 5 and press Enter. Next, navigate to the httpd daemon listing. Is there an asterisk (*) indicating that the daemon is started upon entering this runlevel? Use your Spacebar to remove the * next to httpd. Press Tab to navigate to the OK button and press Enter to exit the ntsysv utility. What other graphical utility can be used to perform the same action?

16. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 8