-
Notifications
You must be signed in to change notification settings - Fork 0
Services
JayBeeDe edited this page Jan 6, 2024
·
1 revision
| Service | systemctl | Description |
|---|---|---|
| service name start | systemctl start name.service | Starts a service. |
| service name stop | systemctl stop name.service | Stops a service. |
| service name restart | systemctl restart name.service | Restarts a service. |
| service namecondrestart | systemctl try-restart name.service | Restarts a service only if it is running. |
| service name reload | systemctl reload name.service | Reloads configuration. |
| service name status | systemctl status name.service systemctl is-active name.service |
Checks if a service is running. |
| service --status-all | systemctl list-units --type service --all | Displays the status of all services. |
| chkconfig | systemctl | Description |
|---|---|---|
| chkconfig name on | systemctl enable name.service | Enables a service. |
| chkconfig name off | systemctl disable name.service | Disables a service. |
| chkconfig --list name | systemctl status name.service | systemctl is-enabled name.service |
| chkconfig --list | systemctl list-unit-files --type service | Lists all services and checks if they are enabled. |
| chkconfig --list | systemctl list-dependencies --after | Lists services that are ordered to start before the specified unit. |
| chkconfig --list | systemctl list-dependencies --before | Lists services that are ordered to start after the specified unit. |



If you find any mistake, do not hesitate to open an issue.