Why is there a reboot.target?


In Linux there are different systemd targets for different states of the system.
For example, graphical.target for a GUI.

I don’t understand why reboot.target exists.

Why not just use the reboot command/service? Why is reboot a target?


Because the system uses "systemctl" for process control, and /sbin/reboot (on my OSes) is simply a symlink to /bin/systemctl.

So the "reboot" command uses the "reboot.target" to do its work.

Answered By – simon3270

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published