On Fri, Jul 22, 2011 at 02:32:08AM +0200, Lennart Poettering wrote:
a) Your app can just place a simple unit file in /run/systemd/system,
and
issue Reload() on the manager D-Bus object. Then, you can start it
via D-Bus, and stop it, and introspect it, and all other
operations. When you want to get rid of it again, stop it, then
remove the file, issue another Reload().
b) Write a "generator". This are small binaries you can drop into
/lib/systemd/system-generators. They are spawned in parallel every
time systemd loads its configuration. These generators can
dynamically generate unit files from other configuration
Nice, this is the right way to make it extendable. Thanks!
Karel
--
Karel Zak <kzak(a)redhat.com>
http://karelzak.blogspot.com