]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
uuidd: add "-q" to synopsis, order options alphabetically
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 27 Feb 2011 15:26:56 +0000 (16:26 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Mar 2011 12:14:48 +0000 (13:14 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
misc-utils/uuidd.8
misc-utils/uuidd.c

index 758dd6609a530958e8dfeb5efe7c3fc314b1a3c0..ee283b05f0468692039cf676fc2949a26ac53687 100644 (file)
@@ -2,7 +2,7 @@
 .\" Copyright 2007 by Theodore Ts'o.  All Rights Reserved.
 .\" This file may be copied under the terms of the GNU Public License.
 .\"
-.TH UUIDD 8 "May 2009" "Linux"
+.TH UUIDD 8 "February 2011" "Linux"
 .SH NAME
 uuidd \- UUID generation daemon
 .SH SYNOPSIS
@@ -10,6 +10,7 @@ uuidd \- UUID generation daemon
 .RB [ \-d ]
 .RB [ \-p
 .IR pidfile ]
+.RB [ \-q ]
 .RB [ \-s
 .IR socketpath ]
 .RB [ \-T
@@ -19,10 +20,12 @@ uuidd \- UUID generation daemon
 .RB [ \-r | \-t ]
 .RB [ \-n
 .IR number ]
+.RB [ \-q ]
 .RB [ \-s
 .IR socketpath ]
 .br
 .B uuidd \-k
+.RB [ \-q ]
 .SH DESCRIPTION
 The
 .B uuidd
@@ -50,16 +53,19 @@ UUIDs.
 Specify the pathname where the pid file should be written.  By default,
 the pid file is written to /var/run/uuidd/uuidd.pid.
 .TP
+.B \-r
+Test uuidd by trying to connect to a running uuidd daemon and
+request it to return a random-based UUID.
+.TP
+.BI \-q
+Suppress some failure messages.
+.TP
 .BI \-s " socketpath"
 Specify the pathname used for the unix-domain socket used by uuidd.  By
 default, the pathname used is /var/run/uuidd/request.  This is primarily
 for debugging purposes, since the pathname is hard-coded in the libuuid
 library.
 .TP
-.B \-r
-Test uuidd by trying to connect to a running uuidd daemon and
-request it to return a random-based UUID.
-.TP
 .B \-t
 Test uuidd by trying to connect to a running uuidd daemon and
 request it to return a time-based UUID.
@@ -68,13 +74,10 @@ request it to return a time-based UUID.
 Specify a timeout for uuidd.  If specified, then uuidd will exit after
 .I timeout
 seconds of inactivity.
-.TP
-.BI \-q
-Turn on quiet flag.
 .SH AUTHOR
 The
 .B uuidd
-daemon  was written by Theodore Ts'o <tytso@mit.edu>.
+daemon was written by Theodore Ts'o <tytso@mit.edu>.
 .SH AVAILABILITY
 uuidd is part of the util-linux package and is available from
 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
index a01cf568f2b10145d85dcacbcd4348b8bb9d1ce0..ea0539be3d4ef41b81f1326c4688777b47bf3134 100644 (file)
@@ -50,11 +50,11 @@ extern int optind;
 
 static void usage(const char *progname)
 {
-       fprintf(stderr, _("Usage: %s [-d] [-p pidfile] [-s socketpath] "
+       fprintf(stderr, _("Usage: %s [-d] [-p pidfile] [-q] [-s socketpath] "
                          "[-T timeout]\n"), progname);
-       fprintf(stderr, _("       %s [-r|t] [-n num] [-s socketpath]\n"),
+       fprintf(stderr, _("       %s [-r|t] [-n num] [-q] [-s socketpath]\n"),
                progname);
-       fprintf(stderr, _("       %s -k\n"), progname);
+       fprintf(stderr, _("       %s -k [-q]\n"), progname);
        exit(1);
 }
 
@@ -426,7 +426,7 @@ int main(int argc, char **argv)
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
 
-       while ((c = getopt (argc, argv, "dkn:qp:s:tT:r")) != EOF) {
+       while ((c = getopt (argc, argv, "dkn:p:qrs:tT:")) != EOF) {
                switch (c) {
                case 'd':
                        debug++;
@@ -449,6 +449,10 @@ int main(int argc, char **argv)
                case 'q':
                        quiet++;
                        break;
+               case 'r':
+                       do_type = UUIDD_OP_RANDOM_UUID;
+                       drop_privs = 1;
+                       break;
                case 's':
                        socket_path = optarg;
                        drop_privs = 1;
@@ -464,10 +468,6 @@ int main(int argc, char **argv)
                                exit(1);
                        }
                        break;
-               case 'r':
-                       do_type = UUIDD_OP_RANDOM_UUID;
-                       drop_privs = 1;
-                       break;
                default:
                        usage(argv[0]);
                }