[systemd-devel] [PATCH] systemctl: add commands set-default and get-default
"Jóhann B. Guðmundsson"
johannbg at gmail.com
Fri May 31 01:29:55 PDT 2013
On 05/28/2013 09:05 AM, Vaclav Pavlin wrote:
> From: Václav Pavlín<vpavlin at redhat.com>
>
> 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 target units? ) if the administrator(s) are linking to a
non bootable target and error out gracefully as in
Something like...
systemctl set-default nfs.target
nfs.target not bootable target exiting...
Or
Bootable dependency in target not meet
nfs.target not bootable target exiting...
otherwise users/administrators might risk linking to a non bootable
target, reboot and find themselves with an un-bootable host ( which
might be easy to deal with locally but not so much remotely )?
JBG
More information about the systemd-devel
mailing list