You are not logged in.
I'm trying to configure kbdd daemon as a systemd service. I'm going to start it at the login and use as the information source for awesome wm widget.
This is the the service file I have written:
[Unit]
Description=kbdd daemon
[Service]
ExecStart=/usr/bin/kbdd -n
Type=dbus
BusName=ru.gentoo.KbddService
User=%i
Group=users
Environment=DISPLAY=:0
[Install]
WantedBy=graphical.targetWhen I try to run "sudo systemctl start kbdd@pashkoff", the command hangs for a minute and then exits.
journalctl output:
Nov 12 14:33:28 pashkoff-pc systemd[1]: Starting kbdd daemon...
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: :main Connecting to the Session D-Bus.
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: :main Regiresting the well-known name (ru.gentoo.KbddService)
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: :main RequestName returned (null).
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: :main Creating one MKbddService Object
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: :main Registering project to D-Bus.
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: Ready to serve requests
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: EWMH is supported
Nov 12 14:33:28 pashkoff-pc kbdd[1374]: Initializing EWHM event listeners
Nov 12 14:34:58 pashkoff-pc systemd[1]: kbdd@pashkoff.service operation timed out. Terminating.
Nov 12 14:34:58 pashkoff-pc systemd[1]: Failed to start kbdd daemon.
Nov 12 14:34:58 pashkoff-pc systemd[1]: Unit kbdd@pashkoff.service entered failed state.It seems, that systemd is unable to detect kbdd. But it works. For example, if I just run "/usr/bin/kbdd -n" and then run "qdbus-qt4", I get next output:
[pashkoff@pashkoff-pc ~]$ qdbus-qt4
:1.1
org.PulseAudio1
org.pulseaudio.Server
:1.16
:1.17
:1.18
org.a11y.Bus
:1.19
:1.2
:1.20
org.gtk.vfs.Daemon
:1.21
:1.25
ru.gentoo.KbddService
:1.26
:1.3
org.gnome.GConf
:1.4
:1.5
org.freedesktop.Notifications
org.naquadah.awesome.awful
ru.gentoo.kbdd3So, as you can see, ru.gentoo.KbddService is present and works. I can call it and awesome wm widget receives signals from kbdd.
What I miss and why I cannot launch kbdd as a dbus service?
Offline
Well, I checked the documentation again. "Type=dbus" services are automatically dependent on dbus.service, so, I suppose, the systemd will check only system bus for service and not session bus. But kbdd uses session bus, so systemd is unable to find it.
The only solution I see is to configure kbdd.service as "systemd --user" service. Or, of course, to just give up and launch the service as "Type=simple".
To moderators: maybe it worth to move this topic to "System administration" from "Newbie corner"?
Offline