mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Tue Aug 7 14:18:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/qemud.c: Fix --config/-f option to libvirtd.
This commit is contained in:
parent
c946c197fe
commit
c47b4c8295
@ -1,3 +1,7 @@
|
||||
Tue Aug 7 14:18:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
* qemud/qemud.c: Fix --config/-f option to libvirtd.
|
||||
|
||||
Tue Aug 7 13:58:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
* acinclude.m4, configure.in: ./configure option
|
||||
|
@ -1595,7 +1595,7 @@ Options:\n\
|
||||
-d | --daemon Run as a daemon & write PID file.\n\
|
||||
-l | --listen Listen for TCP/IP connections.\n\
|
||||
-t | --timeout <secs> Exit after timeout period.\n\
|
||||
-c | --config <file> Configuration file.\n\
|
||||
-f | --config <file> Configuration file.\n\
|
||||
-p | --pid-file <file> Change name of PID file.\n\
|
||||
\n\
|
||||
libvirt management daemon:\n\
|
||||
@ -1639,7 +1639,7 @@ int main(int argc, char **argv) {
|
||||
{ "verbose", no_argument, &verbose, 1},
|
||||
{ "daemon", no_argument, &godaemon, 1},
|
||||
{ "listen", no_argument, &ipsock, 1},
|
||||
{ "config", required_argument, NULL, 'c'},
|
||||
{ "config", required_argument, NULL, 'f'},
|
||||
{ "timeout", required_argument, NULL, 't'},
|
||||
{ "pid-file", required_argument, NULL, 'p'},
|
||||
{ "help", no_argument, NULL, '?' },
|
||||
@ -1651,7 +1651,7 @@ int main(int argc, char **argv) {
|
||||
int c;
|
||||
char *tmp;
|
||||
|
||||
c = getopt_long(argc, argv, "ldfp:t:v", opts, &optidx);
|
||||
c = getopt_long(argc, argv, "ldf:p:t:v", opts, &optidx);
|
||||
|
||||
if (c == -1) {
|
||||
break;
|
||||
@ -1692,7 +1692,9 @@ int main(int argc, char **argv) {
|
||||
return 2;
|
||||
|
||||
default:
|
||||
abort();
|
||||
fprintf (stderr, "libvirtd: internal error: unknown flag: %c\n",
|
||||
c);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user