On CentOS 7.4 running XFCE, most of the time if I click the Logout button, it will reboot/poweroff the machine.
It does the same thing if I use the Logout button in the xfce panel or in the application menu.
I even get sometimes the issue when I use the command:
How can I debug this?
/var/log/messages does not really yield anything of interest, except that it seems the computer shuts down during the process of stopping services, without warning.
Note that sometime, it manages to reach the user login screen, and then proceed to power off.