From Fedora Project Wiki
Description
This test case tests whether starting, stopping, enabling and disabling system services works as expected.
Setup
- Perform an installation of the Fedora release you wish to test, making as few choices as possible and making the most obvious and simple choices where choice is required
How to test
- Log in to the installed system
- In a console, run the following commands:
sudo systemctl stop chronyd.servicesudo systemctl disable chronyd.servicesudo systemctl disable chrony-wait.service
- Now reboot. Log in again, and run the following commands:
sudo systemctl status chronyd.serviceps aux | grep chronydsudo systemctl start chronyd.servicesudo systemctl status chronyd.serviceps aux | grep chronydsudo systemctl stop chronyd.servicesudo systemctl status chronyd.serviceps aux | grep chronydsudo systemctl enable chronyd.service
- Now reboot. Log in again, and run the following commands:
sudo systemctl status chronyd.serviceps aux | grep chronydsudo systemctl disable chronyd.service
- Now reboot. Log in again, and run the following commands:
sudo systemctl status chronyd.serviceps aux | grep chronyd
- If chrony was enabled before starting the test, then enable and start it again.
sudo systemctl start chrony-wait.servicesudo systemctl enable chronyd.servicesudo systemctl start chronyd.service
Expected Results
- Each time they appear, the commands
sudo systemctl status chronyd.serviceandps aux | grep chronydcheck whether the service is running. The expected results, in order, are:- Disabled and inactive (not running)
- Disabled but active (running)
- Disabled and inactive (not running)
- Enabled and active (running)
- Disabled and inactive (not running)
