Re: [systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-26 Thread Michal Schmidt
On 07/13/2012 03:59 PM, Michal Sekletar wrote: https://bugzilla.redhat.com/show_bug.cgi?id=752774 --- man/systemctl.xml | 33 +++- src/shared/install.c | 78 +--- src/shared/unit-name.c | 12 src/shared/unit-na

[systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-13 Thread Michal Sekletar
https://bugzilla.redhat.com/show_bug.cgi?id=752774 --- man/systemctl.xml | 33 +++- src/shared/install.c | 78 +--- src/shared/unit-name.c | 12 src/shared/unit-name.h |1 + 4 files changed, 100 insertions(+), 24

Re: [systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-13 Thread Lennart Poettering
On Thu, 12.07.12 16:00, Michal Sekletar (msekl...@redhat.com) wrote: > +template = unit_name_template(info->name); > +if (!template) { > +free(path); > +r

Re: [systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-12 Thread David Strauss
I had assumed this was already possible. +1 -- David Strauss | da...@davidstrauss.net ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-12 Thread Kok, Auke-jan H
On Thu, Jul 12, 2012 at 7:06 AM, Michal Sekletar wrote: > so I've submitted fixed version. It's slightly modified according to > your comments. Enabling and disabling unit file which is named the same > as instance should work seamlessly now. > I also updated manpages, if you have any concerns abo

Re: [systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-12 Thread Michal Sekletar
Hi Lennart, so I've submitted fixed version. It's slightly modified according to your comments. Enabling and disabling unit file which is named the same as instance should work seamlessly now. I also updated manpages, if you have any concerns about manpage explanation or code itself, feel free to

[systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-12 Thread Michal Sekletar
https://bugzilla.redhat.com/show_bug.cgi?id=752774 --- man/systemctl.xml | 33 + src/shared/install.c | 93 ++-- src/shared/unit-name.c | 12 +++ src/shared/unit-name.h |1 + 4 files changed, 115 insertions(+), 24 del