Re: [systemd-devel] Systemd API for process management

2014-03-17 Thread Lennart Poettering
On Mon, 17.03.14 10:51, Vetoshkin Nikita (nikita.vetosh...@gmail.com) wrote: Heya, first things first: you really should use the dbus api for these kinds of things, scripting around systemctl is not going to be fun... > * Read process status - systemctl lacks robot readable output of process > s

Re: [systemd-devel] Systemd API for process management

2014-03-17 Thread Vetoshkin Nikita
Thanks! Yep, I know about DBus, but I'm poking systemd from Python and I don't quite like the existing bindings. I think --json option for journal contents in systemctl made me think there could a way to use command line from scripts. Anyway, I was tending to use DBus. What about resource usage, an

Re: [systemd-devel] Systemd API for process management

2014-03-17 Thread Mantas Mikulėnas
On Mar 17, 2014 8:51 AM, "Vetoshkin Nikita" wrote: > > Hi there! > I'm exploring possibility to use systemd as process manager / "containizer" for Apache Mesos (http://mesos.apache.org). At the moment I'm trying to use systemctl/systemd-run to implement following: > * Start process with specified

[systemd-devel] Systemd API for process management

2014-03-16 Thread Vetoshkin Nikita
Hi there! I'm exploring possibility to use systemd as process manager / "containizer" for Apache Mesos (http://mesos.apache.org). At the moment I'm trying to use systemctl/systemd-run to implement following: * Start process with specified restrictions (It works wih systemd 211) * Stop process - sys