SCA_SLES15 practice question 5 of 15

If you have a service named tftp, which command and options would enable tftp to start automatically when the server starts?

Full set: 69 questions
Answer options
A: systemctl start tftp
B: systemctl enable tftp Correct answer
C: chkconfig add tftp
D: systemd start tftp
E: systemctl enable-start tftp
Correct Answer:
B. systemctl enable tftp
Explanation

SUSE Linux Enterprise Server 15 uses systemd as its init system. The systemctl command is the primary tool for managing services. To configure a service to start automatically at boot, you must "enable" it. The systemctl enable tftp command creates the necessary symbolic links in the systemd configuration directories, which instructs systemd to start the tftp.service unit during the system startup process.

Why Incorrect

systemctl start tftp: This command starts the service only for the current session; it will not persist after a reboot.
chkconfig add tftp: chkconfig is a legacy command from the older SysVinit system and is not the native tool for systemd. systemd start tftp: systemd is the name of the init system itself, not a command-line tool for managing services in this syntax.
systemctl enable-start tftp: enable-start is not a valid verb for the systemctl command. The correct combined action is systemctl enable --now.

References

SUSE Linux Enterprise Server 15 SP5 Administration Guide, Section 15.5.1, "Managing Services". It explicitly states: "To start a service at boot, enable it with sudo systemctl enable SERVICENAME."

SUSE Linux Enterprise Server 15 SP5 Administration Guide, Table 15.2, "systemctl: Service States". The table clearly distinguishes between start (starts a service) and enable (enables a service to be started at boot time).

Scroll to Top