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 |
dbus needs to be running first.
Code:
sudo systemctl start dbus.service |
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. |