services
The services Kickstart command is optional. It modifies the default set of services that will run under the default systemd target. The list of disabled services is processed before the list of enabled services. Therefore, if a service appears on both lists, it will be enabled.
- Syntax
-
services [--disabled=list] [--enabled=list] - Options
-
--disabled=- Disable the services given in the comma separated list.--enabled=- Enable the services given in the comma separated list.
- Notes
-
- When using the
serviceselement to enablesystemdservices, ensure you include packages containing the specified service file in the%packagessection. - Multiple services should be included separated by comma, without any spaces. For example, to disable four services, enter:
services --disabled=auditd,cups,smartd,nfslockIf you include any spaces, Kickstart enables or disables only the services up to the first space. For example:
services --disabled=auditd, cups, smartd, nfslockThat disables only the
auditdservice. To disable all four services, this entry must include no spaces.
- When using the