How to restart dbus service?

2014-07-17 Thread Miroslav Suchý

Hi,
how can I restart dbus service, registered via systemd unit?

To be specific, I have in system:
/usr/share/dbus-1/services/org.a11y.atspi.Registry.service
with:
[D-BUS Service]
Name=org.a11y.atspi.Registry
Exec=/usr/libexec/at-spi2-registryd --use-gnome-session

And `ps` shows:
2800 ?Sl 0:00 /usr/libexec/at-spi2-registryd --use-gnome-session

Command
 service messagebus restart
seems to restart only the dbus itself, not the service, which are hooked to 
dbus.

Is there some way restart that process? (kill(1) comes to my mind, but I'm 
thinking about systematic approach)

--
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: How to restart dbus service?

2014-07-17 Thread Mathieu Bridon
On Thu, 2014-07-17 at 16:11 +0200, Miroslav Suchý wrote:
 Hi,
 how can I restart dbus service, registered via systemd unit?
 
 To be specific, I have in system:
 /usr/share/dbus-1/services/org.a11y.atspi.Registry.service
 with:
 [D-BUS Service]
 Name=org.a11y.atspi.Registry
 Exec=/usr/libexec/at-spi2-registryd --use-gnome-session

That service should instead have a SystemdService= key, with the name of
the systemd unit as its value. (then Exec= becomes completely unused)

Without this (and the actual systemd unit), the service is completely
unknown by systemd, so it can't restart it.


-- 
Mathieu

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: How to restart dbus service?

2014-07-17 Thread Matthias Clasen
On Thu, 2014-07-17 at 16:21 +0200, Mathieu Bridon wrote:
 On Thu, 2014-07-17 at 16:11 +0200, Miroslav Suchý wrote:
  Hi,
  how can I restart dbus service, registered via systemd unit?
  
  To be specific, I have in system:
  /usr/share/dbus-1/services/org.a11y.atspi.Registry.service
  with:
  [D-BUS Service]
  Name=org.a11y.atspi.Registry
  Exec=/usr/libexec/at-spi2-registryd --use-gnome-session
 
 That service should instead have a SystemdService= key, with the name of
 the systemd unit as its value. (then Exec= becomes completely unused)
 
 Without this (and the actual systemd unit), the service is completely
 unknown by systemd, so it can't restart it.
 

This is a session service, so systemd is not in the picture (yet).

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: How to restart dbus service?

2014-07-17 Thread Mathieu Bridon
On Thu, 2014-07-17 at 10:24 -0400, Matthias Clasen wrote:
 On Thu, 2014-07-17 at 16:21 +0200, Mathieu Bridon wrote:
  On Thu, 2014-07-17 at 16:11 +0200, Miroslav Suchý wrote:
   Hi,
   how can I restart dbus service, registered via systemd unit?
   
   To be specific, I have in system:
   /usr/share/dbus-1/services/org.a11y.atspi.Registry.service
   with:
   [D-BUS Service]
   Name=org.a11y.atspi.Registry
   Exec=/usr/libexec/at-spi2-registryd --use-gnome-session
  
  That service should instead have a SystemdService= key, with the name of
  the systemd unit as its value. (then Exec= becomes completely unused)
  
  Without this (and the actual systemd unit), the service is completely
  unknown by systemd, so it can't restart it.
  
 
 This is a session service, so systemd is not in the picture (yet).

Ah, right, I misread and read the path as .../system-services/...


-- 
Mathieu

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct