Server Administration

An administrator schedules a script to restore a required service if it stops. What logic should the script use to avoid interrupting a healthy service?

Show the answer

Correct answerD. Check service status and start it if stopped

AWhy not this: Configuring startup behavior does not restore a service that is currently stopped.

BWhy not this: Restarting a running service creates an unnecessary interruption.

CWhy not this: Rebooting interrupts the healthy service and other workloads on the server.

DWhy this is right: A status check makes recovery conditional, leaving an already-running service undisturbed.

Checking the current service status allows the script to start a stopped service without interrupting one that is already running. Configuring startup behavior affects future boots rather than restoring the service now.