Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Mirco Tischler
2013/3/5 Holger Winkelmann > > On Mar 5, 2013, at 10:21 PM, Mirco Tischler wrote: > > 2013/3/5 Holger Winkelmann > >> Hi David, >> >> On Mar 5, 2013, at 9:52 PM, David Strauss wrote: >> >> > On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann >> wrote: >> >> Or is there a special journal socke

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Holger Winkelmann
On Mar 5, 2013, at 10:21 PM, Mirco Tischler wrote: > 2013/3/5 Holger Winkelmann > Hi David, > > On Mar 5, 2013, at 9:52 PM, David Strauss wrote: > > > On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann > > wrote: > >> Or is there a special journal socket to write to? > > > > Yes, and the P

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Mirco Tischler
2013/3/5 Holger Winkelmann > Hi David, > > On Mar 5, 2013, at 9:52 PM, David Strauss wrote: > > > On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann > wrote: > >> Or is there a special journal socket to write to? > > > > Yes, and the Python module's use of the C library wraps all of that. > > >

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Holger Winkelmann
Hi David, On Mar 5, 2013, at 9:52 PM, David Strauss wrote: > On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann > wrote: >> Or is there a special journal socket to write to? > > Yes, and the Python module's use of the C library wraps all of that. > > Auke is also correct that you can write t

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread David Strauss
On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann wrote: > Or is there a special journal socket to write to? Yes, and the Python module's use of the C library wraps all of that. Auke is also correct that you can write to stderr/stdout from a service running in systemd. That does not support str

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Lennart Poettering
On Tue, 05.03.13 08:16, Holger Winkelmann ([email protected]) wrote: > > I Like the idea as well to have direct DBus access to systemd. > > Regarding your example of the journal wrapper. Anybody knows the API > to write to the journal without using the C library? Is this DBus > transport as we

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Kok, Auke-jan H
On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann wrote: > I Like the idea as well to have direct DBus access to systemd. > > Regarding your example of the journal wrapper. Anybody knows the API to write > to the journal without using the C library? Is this DBus transport as well? > Or is there

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-04 Thread Holger Winkelmann
I Like the idea as well to have direct DBus access to systemd. Regarding your example of the journal wrapper. Anybody knows the API to write to the journal without using the C library? Is this DBus transport as well? Or is there a special journal socket to write to? -- Holger ### Sent from a m

[systemd-devel] Python wrappers for the DBus API

2013-03-04 Thread David Strauss
We're about to code a Python wrapper for systemd's DBus functionality. Initially, it will be non-comprehensive and satisfy our internal Pantheon goal of reading fields on a service and manipulating services without forking and parsing systemctl output to do either. But, a clean, incomplete impleme