Explorar o código

s-s-d: Clarify in help output that --name is one of the required options

Closes: #354999
Guillem Jover %!s(int64=18) %!d(string=hai) anos
pai
achega
925bf48883
Modificáronse 3 ficheiros con 14 adicións e 5 borrados
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 7 5
      utils/start-stop-daemon.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-01-18  Guillem Jover  <guillem@debian.org>
+
+	* utils/start-stop-daemon.c (do_help): Coalesce mandatory options
+	into a single paragraph, and state that at least one is required.
+
 2008-01-18  Guillem Jover  <guillem@debian.org>
 
 	* configure.ac (AC_CHECK_SIZEOF): Quote parameters.

+ 2 - 0
debian/changelog

@@ -19,6 +19,8 @@ dpkg (1.14.16) UNRELEASED; urgency=low
   * Additionally check if errno is EEXIST after rmdir(2), as SUSv3 specifies
     that on non-empty directories it can either return that or ENOTEMPTY.
     This fixes run time problems on Solaris.
+  * Fix start-stop-daemon --help output to state that --name is one of the
+    possible required options to use. Closes: #354999
 
   [ Frank Lichtenheld ]
   * Make the -L option of dpkg-parsechangelog actually work (it's

+ 7 - 5
utils/start-stop-daemon.c

@@ -346,15 +346,17 @@ do_help(void)
 "  -H|--help                     print help information\n"
 "  -V|--version                  print version\n"
 "\n"
-"Options (at least one of --exec|--pidfile|--user is required):\n"
-"  -x|--exec <executable>        program to start/check if it is running\n"
+"Mandatory options (at least one is required):\n"
 "  -p|--pidfile <pid-file>       pid file to check\n"
+"  -x|--exec <executable>        program to start/check if it is running\n"
+"  -n|--name <process-name>      stop processes with this name\n"
+"  -u|--user <username|uid>      stop processes owned by this user\n"
+"\n"
+"Options:\n"
+"  -g|--group <group|gid>        run process as this group\n"
 "  -c|--chuid <name|uid[:group|gid]>\n"
 "                                change to this user/group before starting\n"
 "                                  process\n"
-"  -u|--user <username>|<uid>    stop processes owned by this user\n"
-"  -g|--group <group|gid>        run process as this group\n"
-"  -n|--name <process-name>      stop processes with this name\n"
 "  -s|--signal <signal>          signal to send (default TERM)\n"
 "  -a|--startas <pathname>       program to start (default is <executable>)\n"
 "  -r|--chroot <directory>       chroot to <directory> before starting\n"