CompTIA Linux+ XK0-006 (V8) Practice Question

You have created a one-shot systemd unit named [email protected] that sends an email to on-call staff. The goal is for this notification unit to run automatically only when the main application unit orders-api.service enters the failed state (it must not trigger during a normal stop or restart). Which directive should you add to the orders-api.service unit file to accomplish this requirement?

  • Add FailureAction=notify-admin.service to the [Unit] section

  • Add StartLimitAction=notify-admin.service to the [Unit] section

  • Add OnFailure=notify-admin@%n.service to the [Unit] section

  • Add ExecStopPost=/usr/local/bin/notify-admin.sh to the [Service] section

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot