Bird
0
0

To ensure a production server's critical service restarts automatically on failure, which systemd service file option should a sysadmin add?

hard📝 Application Q9 of 15
Linux CLI - System Administration
To ensure a production server's critical service restarts automatically on failure, which systemd service file option should a sysadmin add?
AAutoStart=yes
BRestart=always
CKeepAlive=true
DReloadOnFail=1
Step-by-Step Solution
Solution:
  1. Step 1: Know systemd restart options

    'Restart=always' tells systemd to restart service on failure.
  2. Step 2: Verify other options are invalid

    Options like AutoStart, KeepAlive, ReloadOnFail do not exist in systemd.
  3. Final Answer:

    Restart=always -> Option B
  4. Quick Check:

    Auto-restart service = Restart=always [OK]
Quick Trick: Use Restart=always in systemd to auto-restart services [OK]
Common Mistakes:
  • Using non-existent systemd options
  • Confusing service start with restart
  • Assuming reload triggers restart

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes