From Fedora Project Wiki
Coremodule (talk | contribs) (changed default service shown from sshd to chronyd) |
(sudo instead of su) |
||
Line 9: | Line 9: | ||
# Log in to the installed system | # Log in to the installed system | ||
# In a console, run the following commands: | # In a console, run the following commands: | ||
#: {{command| | #: {{command|sudo systemctl stop chronyd.service}} | ||
#: {{command| | #: {{command|sudo systemctl disable chronyd.service}} | ||
# Now reboot. Log in again, and run the following commands: | # Now reboot. Log in again, and run the following commands: | ||
#: {{command| | #: {{command|sudo systemctl status chronyd.service}} | ||
#: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | #: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | ||
#: {{command| | #: {{command|sudo systemctl start chronyd.service}} | ||
#: {{command| | #: {{command|sudo systemctl status chronyd.service}} | ||
#: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | #: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | ||
#: {{command| | #: {{command|sudo systemctl stop chronyd.service}} | ||
#: {{command| | #: {{command|sudo systemctl status chronyd.service}} | ||
#: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | #: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | ||
#: {{command| | #: {{command|sudo systemctl enable chronyd.service}} | ||
# Now reboot. Log in again, and run the following commands: | # Now reboot. Log in again, and run the following commands: | ||
#: {{command| | #: {{command|sudo systemctl status chronyd.service}} | ||
#: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | #: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | ||
#: {{command| | #: {{command|sudo systemctl disable chronyd.service}} | ||
# Now reboot. Log in again, and run the following commands: | # Now reboot. Log in again, and run the following commands: | ||
#: {{command| | #: {{command|sudo systemctl status chronyd.service}} | ||
#: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | #: {{command|ps aux <nowiki>|</nowiki> grep chronyd}} | ||
|results= | |results= | ||
# Each time they appear, the commands {{command| | # Each time they appear, the commands {{command|sudo systemctl status chronyd.service}} and {{command|ps aux <nowiki>|</nowiki> grep chronyd}} check whether the service is running. The expected results, in order, are: | ||
#: Disabled and inactive (not running) | #: Disabled and inactive (not running) | ||
#: Disabled but active (running) | #: Disabled but active (running) |
Revision as of 22:08, 10 March 2021
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.service
sudo systemctl disable chronyd.service
- Now reboot. Log in again, and run the following commands:
sudo systemctl status chronyd.service
ps aux | grep chronyd
sudo systemctl start chronyd.service
sudo systemctl status chronyd.service
ps aux | grep chronyd
sudo systemctl stop chronyd.service
sudo systemctl status chronyd.service
ps aux | grep chronyd
sudo systemctl enable chronyd.service
- Now reboot. Log in again, and run the following commands:
sudo systemctl status chronyd.service
ps aux | grep chronyd
sudo systemctl disable chronyd.service
- Now reboot. Log in again, and run the following commands:
sudo systemctl status chronyd.service
ps aux | grep chronyd
Expected Results
- Each time they appear, the commands
sudo systemctl status chronyd.service
andps aux | grep chronyd
check 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)