I am trying to setup a daemon width systemd
on Debian.
systemd
was already a part of the distro.. Have just added a new unit file my-daemon.service under /etc/systemd/system/
but after reboot I get this error no matter what I do. It worked before reboot
~ # systemctl daemon-reload
Failed to get D-Bus connection: Unknown error -1
~ # systemctl list-units
Failed to get D-Bus connection: Unknown error -1
Have also tried to delete the unit file my-daemon.service and rebooted the system.. But still get the same error
# dpkg -l | grep -i dbus
ii at-spi2-core 2.14.0-1 amd64 Assistive Technology Service Provider Interface (dbus core)
ii dbus 1.8.22-0+deb8u1 amd64 simple interprocess messaging system (daemon and utilities)
ii dbus-x11 1.8.20-0+deb8u1 amd64 simple interprocess messaging system (X11 deps)
ii libdbus-1-3:amd64 1.8.20-0+deb8u1 amd64 simple interprocess messaging system (library)
ii libdbus-glib-1-2:amd64 0.102-1 amd64 simple interprocess messaging system (GLib-based shared library)
ii libdbusmenu-glib4:amd64 12.10.2-1 amd64 library for passing menus over DBus
ii libdbusmenu-gtk4:amd64 12.10.2-1 amd64 library for passing menus over DBus - GTK+ version
ii libnet-dbus-perl 1.0.0-2+b2 amd64 Perl extension for the DBus bindings
ii libnih-dbus1 1.0.3-4.3 amd64 NIH D-Bus Bindings Library
ii libqt4-dbus:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 D-Bus module
ii libqt5dbus5:amd64 5.3.2+dfsg-4+deb8u1 amd64 Qt 5 D-Bus module
ii libqtdbus4:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 D-Bus module library
ii qdbus 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 D-Bus tool
# cd /run/dbus && ls -la
total 4
drwxr-xr-x 2 messagebus messagebus 80 Feb 2 11:08 .
drwxr-xr-x 21 root root 740 Feb 6 19:33 ..
-rw-r--r-- 1 root root 5 Feb 2 11:08 pid
srwxrwxrwx 1 root root 0 Feb 2 11:08 system_bus_socket
# cat /etc/fstab
proc /proc proc defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 defaults 0 0
Comments
Post a Comment