QuestionQ11

Essential System Services

With these two symbolic links in a System V init configuration:

  • /etc/rc1.d/K01apache2
  • /etc/rc2.d/S02apache2

When are the scripts referenced by these links executed?

Choose two
  • A S02apache2 is run when runlevel 2 is entered.
  • B S02apache2 is run when runlevel 2 is left.
  • C K01apache2 is never run because K indicates a deactivated service.
  • D Both S02apache2 and K01apache2 are run during a system shutdown.
  • E K01apache2 is run when runlevel 1 is entered.
Explanation

System V init processes the sequencing directory for the runlevel being entered. Links prefixed with S start the service, while links prefixed with K stop it. Therefore, S02apache2 is executed when runlevel 2 is entered, and K01apache2 is executed when runlevel 1 is entered.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!