A Linux administrator needs to ensure that a web-based application service does not start until after the graphical interface has been loaded. Which directive should the administrator use within the service's unit file to enforce this dependency?
The After=graphical.target directive is used within a systemd unit file to specify that the service should start after the specified target, in this case, the graphical interface, has been reached during the boot process. The Requires=graphical.target establishes a strong dependency, but doesn't specify order. The BindsTo=graphical.target establishes an even stronger binding dependency, but also doesn't specify order. Wants=graphical.target creates a weaker dependency and doesn't guarantee the service will start after the graphical interface.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a systemd unit file?
Open an interactive chat with Bash
What does 'graphical.target' refer to in a Linux system?
Open an interactive chat with Bash
What are the differences between After=, Requires=, and Wants= in systemd?