English Portuguese (Brazil)
You can perform various management tasks to control _systemd_ services using the `systemctl` command. The following is a set of example commands to demonstrate how to use `systemctl` to manage _systemd_ services.
You are logged in as a user with administrator-level permissions.
The following commands control the `foo` service:
# systemctl stop foo
# systemctl status foo
# systemctl start foo
# systemctl restart foo
# systemctl mask foo
# systemctl is-enabled foo
# systemctl enable foo
# systemctl disable foo
Starting, stopping, and querying systemd services
Show the status of a service including, whether it is running or not:
Run `man systemctl` for more details.
Restart a service:
Related Information
Prevent a service from starting dynamically or even manually unless unmasked:
Enable a service to be started on boot:
Disable a service to not start during boot:
Deactivate a service immediately: