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:
- Start the Bluetooth service using the systemctl command.
- From the Favorites bar, select Terminal.
- At the prompt, type systemctl start bluetooth.service and then press Enter.
- Type systemctl is-active bluetooth.service to verify that the service is active.
- Stop the Bluetooth service using the systemctl command.
- At the prompt, type systemctl stop bluetooth.service and then press Enter.
- Type systemctl is-active bluetooth.service to verify that the service is active.
- Restart the Bluetooth service using the systemctl command.
- At the prompt, type systemctl restart bluetooth.service and then press Enter.
- Type systemctl is-active bluetooth.service to verify that the service is active.
Comments
Post a Comment