[systemd-devel] [PATCH v2] systemctl: introduce --now for enable, disable and mask

"Jóhann B. Guðmundsson" johannbg at gmail.com
Fri May 15 01:58:42 PDT 2015



On 05/15/2015 07:54 AM, jsynacek at redhat.com wrote:
> From: Jan Synacek <jsynacek at redhat.com>
>
> ---
> changes in v2:
> * simplified creation of new arguments (replaced unnecessary dynamic allocation
>    with a VLA)
> * renamed add_file_change to unit_file_add_changes
> * addressed wording issues in documentation
>

Hmm is the usecase for this to spare administrator having to type twice 
the systemctl command on the console as in systemctl start $foo && 
systemctl enable $foo becomes "systemctl start --now $foo"

If that's the case would it not be better to simply support "systemctl 
start enable $foo" rather then introducing yet another switch for 
administrators to remember?

On top of that is not "now" a bit confusing word to be using for this 
behaviour ?

JBG


More information about the systemd-devel mailing list