Bird
0
0

A user runs systemctl restart mysql but the service does not restart and no error is shown. What could be the problem?

medium📝 Debug Q7 of 15
Linux CLI - Process Management
A user runs systemctl restart mysql but the service does not restart and no error is shown. What could be the problem?
AThe restart command is invalid syntax
BThe mysql service is already stopped
CThe user lacks sufficient permissions to restart the service
DThe systemctl daemon is not running
Step-by-Step Solution
Solution:
  1. Step 1: Understand restart behavior

    Restarting a service requires root or sudo privileges.
  2. Step 2: Identify why no error appears

    If the user lacks permissions, the command may silently fail or show minimal output.
  3. Final Answer:

    The user lacks sufficient permissions to restart the service -> Option C
  4. Quick Check:

    Restart needs root privileges [OK]
Quick Trick: Restarting services requires root or sudo permissions [OK]
Common Mistakes:
  • Thinking restart syntax is wrong
  • Assuming service must be running to restart
  • Believing systemctl daemon is stopped

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes