Re: [systemd-devel] [PATCH] systemctl: add commands set-default and get-default

2013-05-31 Thread Zbigniew Jędrzejewski-Szmek
On Fri, May 31, 2013 at 08:29:55AM +, "Jóhann B. Guðmundsson" wrote: > On 05/28/2013 09:05 AM, Vaclav Pavlin wrote: > >From: Václav Pavlín > > > >systemctl set-default NAME links the default.target to the given unit, > >get-default prints out the path to the currently set default target. > > I

Re: [systemd-devel] [PATCH] systemctl: add commands set-default and get-default

2013-05-31 Thread Jóhann B. Guðmundsson
On 05/28/2013 09:05 AM, Vaclav Pavlin wrote: From: Václav Pavlín systemctl set-default NAME links the default.target to the given unit, get-default prints out the path to the currently set default target. Is this not a bit tricky as in dont we need a way to detect ( introduce Bootable=yes in

Re: [systemd-devel] [PATCH] systemctl: add commands set-default and get-default

2013-05-30 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 28, 2013 at 11:05:48AM +0200, Vaclav Pavlin wrote: > From: Václav Pavlín > > systemctl set-default NAME links the default.target to the given unit, > get-default prints out the path to the currently set default target. Applied, with the following tweaks: - changed get-default to prin

[systemd-devel] [PATCH] systemctl: add commands set-default and get-default

2013-05-28 Thread Vaclav Pavlin
From: Václav Pavlín systemctl set-default NAME links the default.target to the given unit, get-default prints out the path to the currently set default target. --- man/systemctl.xml | 18 ++ shell-completion/bash/systemctl | 6 +++- src/core/dbus-manager.c | 28 +++