diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-11-09 14:46:38 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-11-09 14:46:38 -0800 |
| commit | 3fbe1d307e27ed99528d83cf866c7df497e58b77 (patch) | |
| tree | 44f4b56114eb2d4e4f093e3378aefaf823283e57 /lib/unixctl.c | |
| parent | fde05aded2906e113d02aa13d207d9a6e3e0ea99 (diff) | |
| download | openvswitch-3fbe1d307e27ed99528d83cf866c7df497e58b77.tar.gz | |
Make ovs-appctl easier to use and synchronize its interface with ovs-vsctl.
It is inconvenient to type the whole path to the Unix daemon socket when
using ovs-appctl. Allow the name of the daemon to be used instead when
a pidfile exists in the default location, and contact ovs-vswitchd by
default.
Also, the various options for manipulating vlog were invented before the
general-purpose command mechanism existed. Get rid of all of the action
options in favor of just specifying the command to be executed as
non-option arguments.
Finally, there simply wasn't much value in allowing multiple targets or
options to be specified; these variations were never used in practice. So
simplify the interface by making it one target, one action per invocation.
Also, make ovs-vsctl use the same syntax for its --target option.
Based on work by Justin Pettit.
Diffstat (limited to 'lib/unixctl.c')
| -rw-r--r-- | lib/unixctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unixctl.c b/lib/unixctl.c index e774ffe4a..164a7db6e 100644 --- a/lib/unixctl.c +++ b/lib/unixctl.c @@ -168,7 +168,7 @@ unixctl_command_reply(struct unixctl_conn *conn, * A program that (optionally) daemonizes itself should call this function * *after* daemonization, so that the socket name contains the pid of the * daemon instead of the pid of the program that exited. (Otherwise, - * "ovs-appctl --target <program>.pid" will fail.) + * "ovs-appctl --target=<program>" will fail.) * * Returns 0 if successful, otherwise a positive errno value. If successful, * sets '*serverp' to the new unixctl_server, otherwise to NULL. */ |
