Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/09/2015 10:21 PM, Lennart Poettering wrote: On Tue, 09.06.15 19:33, Jakub Skořepa (ja...@skorepa.info) wrote: Hello, My name is Jakub Skořepa and I'm working on Cockpit UI for Systemd Timers. For that I need to create and modify systemd unit files. Cockpit uses D -Bus for everything

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Simon McVittie
On 10/06/15 11:46, Jóhann B. Guðmundsson wrote: I hate to say this since I'm against litter unit files across the entire filesystem like infective disease and administrator then have to run around trying to chase them down but is it not better to store this under /srv somewhere [1], not etc,

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Lennart Poettering
B1;4002;0cOn Wed, 10.06.15 13:25, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: On 10/06/15 11:46, Jóhann B. Guðmundsson wrote: I hate to say this since I'm against litter unit files across the entire filesystem like infective disease and administrator then have to run around

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 12:30 PM, Stephen Gallagher wrote: A good overview of what we're aiming to accomplish can be found here: h ttps://github.com/cockpit-project/cockpit/wiki/Feature:-Systemd -timers#stories Though at the end of the day, it might be fair to say that systemd timers are cool and very

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Stephen Gallagher
On Wed, 2015-06-10 at 10:46 +, On 06/09/2015 10:21 PM, Lennart Poettering wrote: On Tue, 09.06.15 19:33, Jakub Skořepa (ja...@skorepa.info) wrote: Hello, My name is Jakub Skořepa and I'm working on Cockpit UI for Systemd Timers. For that I need to create and modify

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Stephen Gallagher
On Wed, 2015-06-10 at 13:21 +, On 06/10/2015 12:30 PM, Stephen Gallagher wrote: A good overview of what we're aiming to accomplish can be found here: h ttps://github.com/cockpit-project/cockpit/wiki/Feature:-Systemd -timers#stories Though at the end of the day, it might be

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 03:02 PM, Stephen Gallagher wrote: You make some good points Jóhann. It probably does make sense to focus (at least at first) on managing timer units shipped alongside services as opposed to trying to develop a UI for managing arbitrary timer units. I'll discuss this with some of

Re: [systemd-devel] Creating units using D-Bus

2015-06-09 Thread Stephen Gallagher
On Tue, 2015-06-09 at 19:33 +0200, Jakub Skořepa wrote: Hello, My name is Jakub Skořepa and I'm working on Cockpit UI for Systemd Timers. For that I need to create and modify systemd unit files. Cockpit uses D -Bus for everything so I need D-Bus API for that. I think that it would be

[systemd-devel] Creating units using D-Bus

2015-06-09 Thread Jakub Skořepa
Hello, My name is Jakub Skořepa and I'm working on Cockpit UI for Systemd Timers. For that I need to create and modify systemd unit files. Cockpit uses D -Bus for everything so I need D-Bus API for that. I think that it would be beneficial if systemd was able to create unit files on-the-fly using

Re: [systemd-devel] Creating units using D-Bus

2015-06-09 Thread Lennart Poettering
On Tue, 09.06.15 14:47, Stephen Gallagher (sgall...@redhat.com) wrote: In order for ModifyUnit() to work, there also needs to be a way to retrieve the current definition of the unit on the system. (And, ideally, a way to retrieve this for any unit currently loaded into systemd). systemctl