Manage Linux Services (credit to MindTap)


While working on your Linux server, you want to practice starting, stopping, and restarting a service using the systemctl command.

In this lab, your task is to:

  • Use the systemctl command to start bluetooth.service.
  • Use the systemctl command to stop bluetooth.service.
  • Use the systemctl command to restart bluetooth.service.
After each command, you can check the service status with the systemctl is-active bluetooth.service command.
EXPLANATION

Complete this lab as follows:

  1. Start the Bluetooth service using the systemctl command.
    1. From the Favorites bar, select Terminal.
    2. At the prompt, type systemctl start bluetooth.service and then press Enter.
    3. Type systemctl is-active bluetooth.service to verify that the service is active.
  2. Stop the Bluetooth service using the systemctl command.
    1. At the prompt, type systemctl stop bluetooth.service and then press Enter.
    2. Type systemctl is-active bluetooth.service to verify that the service is active.
  3. Restart the Bluetooth service using the systemctl command.
    1. At the prompt, type systemctl restart bluetooth.service and then press Enter.
    2. Type systemctl is-active bluetooth.service to verify that the service is active.

 







Comments