a note on order of arguements to systemctl command

Garrett Holmstrom gholms at fedoraproject.org
Tue Aug 24 21:45:49 UTC 2010


Matthew Miller wrote:
> The service command has a syntax like this:
> 
>  service servicename action
> 
> where as systemctl has a syntax like this:
> 
>  systemctl action servicename.service
> 
> This is inconvienient for the common case where more than one action is
> performed in sequence on the same service, since with the first ordering,
> one just hits the up arrow, ctrl-w, and then types the new action (with
> tab-completion).
> 
> With the systemctl order, one must first skip back over the first word,
> which due to the awesome emacsness of bash keybindings is more of a pain.
> 
> I'm not saying that systemctl's syntax needs to be changed. I am saying,
> however, that it's important to get the service command working with
> systemctl so that people can use that instead.

I'm of two minds here.  On the one hand it would be nice to preserve the 
long-standing syntax convention for the reason Matt described.  But on 
the other hand, putting the verb before the object seems to mesh well 
with how the English language usually works.


More information about the devel mailing list