LPIC-1 Exam 101 v5 (Linux Administrator) — Question 33
Given the following two symbolic links in a System V init configuration:
/etc/rc1.d/K01apache2
/etc/rc2.d/S02apache2
When are the scripts executed that are referenced by these links? (Choose two.)
Answer options
- 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.
Correct answer: A, E
Explanation
The correct answer A is accurate because S02apache2 is designed to start services when runlevel 2 is reached. E is also correct as K01apache2 is meant to stop services when transitioning into runlevel 1. Options B and D are incorrect because S02apache2 does not run when leaving runlevel 2, and K01apache2 is not executed during shutdown since it is meant for stopping services, not starting them.