LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   systemctl failed to get Dbus connection: No connection to service manager (https://www.linuxquestions.org/questions/linux-software-2/systemctl-failed-to-get-dbus-connection-no-connection-to-service-manager-4175466325/)

k84834 06-17-2013 06:32 AM

systemctl failed to get Dbus connection: No connection to service manager
 
Hi every body
I works on buildroot for some days.
now I have an issue with systemctl.
in fact, I want to initialize and start lighttpd.
according to this page, I want to run "systemctl start lighttpd" to initialize lighttpd server.
but I face with "systemctl failed to get Dbus connection: No connection to service manager" error.
I have searched and find that I must boot with systemd.
I must create some symlinks to boot with systemd

when I run "cat /proc/1/comm" I have received: "init" instead of systemd.

after I create symlinks like " ln -sf /usr/lib/systemd/systemd /sbin/init" and reboot the system, my boot crash before init step.

have any one any suggestion?!
thanks from all

jv2112 07-14-2013 06:56 AM

dbus needs to be running first.


Code:

sudo systemctl start dbus.service

sudo systemctl enable dbus.service


jpollard 07-14-2013 08:20 AM

The "cat /proc/1/comm" will always show "init", as that is the name the kernel uses to start init. The kernel init process does an exec of /sbin/init, which in a systemd environment is a symbolic link to /bin/systemd, so the command to invoke systemd is init.


All times are GMT -5. The time now is 06:30 PM.