Bird
0
0

Which command is used to enable a systemd service to start automatically on Raspberry Pi boot?

easy🧠 Conceptual Q2 of 15
Raspberry Pi - Automation and Scheduling
Which command is used to enable a systemd service to start automatically on Raspberry Pi boot?
Asystemctl enable myservice.service
Bsystemctl start myservice.service
Csystemctl stop myservice.service
Dsystemctl status myservice.service
Step-by-Step Solution
Solution:
  1. Step 1: Understand systemctl commands

    start runs the service now, enable sets it to auto-start on boot.
  2. Step 2: Identify the command for auto-start

    systemctl enable creates the necessary links for auto-start.
  3. Final Answer:

    systemctl enable myservice.service -> Option A
  4. Quick Check:

    Enable command = systemctl enable [OK]
Quick Trick: Use 'enable' to auto-start service at boot [OK]
Common Mistakes:
MISTAKES
  • Using start instead of enable for auto-start
  • Confusing stop with enable
  • Checking status does not enable service

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes