When trying to restart any service on a CentOS server, i get error
Failed to list units: Activation of org.freedesktop.systemd1 timed out
Server won’t even reboot, here is what i get when i try reboot or restart a service.
[root@server ~]# service httpd restart Redirecting to /bin/systemctl restart httpd.service Failed to restart httpd.service: Activation of org.freedesktop.systemd1 timed out See system logs and 'systemctl status httpd.service' for details. [root@server ~]# reboot Failed to start reboot.target: Activation of org.freedesktop.systemd1 timed out See system logs and 'systemctl status reboot.target' for details. Failed to open /dev/initctl: No such device or address Failed to talk to init daemon. [root@server ~]# systemctl reboot Failed to start reboot.target: Activation of org.freedesktop.systemd1 timed out See system logs and 'systemctl status reboot.target' for details. [root@server ~]# systemctl --failed Failed to list units: Activation of org.freedesktop.systemd1 timed out [root@server ~]#
problem is solved by force rebooting with command.
reboot -f