[ovs-dev] [Debian-non-root v2 3/4] ovs-ctl: add --no-run-as-root option

Ben Pfaff blp at nicira.com
Sat Oct 24 21:02:53 UTC 2015

On Fri, Oct 09, 2015 at 05:13:23PM -0700, Andy Zhou wrote:
> Add option to ovs-ctl script to specify whether to start the daemons as
> root user or ovs user.  The default is 'run-as-root', which preserves
> the script's current behavior.
> Signed-off-by: Andy Zhou <azhou at nicira.com>

I think that the implementation is fine but I'm nervous about the option
name.  I prefer positive names over negative ones because they are
generally more meaningful to users.

Here, for example, one option would be to support --run-as=user[:group].
Then one could invoke it as --run-as=root or --run-as=ovs.  That also
gives more control to the caller since it can now specify specifically
what user it wants.

Whether the option name is changed or not, this commit should update the
ovs-ctl manpage.

More information about the dev mailing list