[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: start-stop-daemon no respeta LSB en init.d



Iñaki Baz Castillo wrote:
El Jueves, 31 de Mayo de 2007, Javier Ruano escribió:
Listas de correo de erl wrote:
Viendo el diff parece que eliminas la opcion --oknodo. Pienso que no se
debería quitar para no hacer fallar a los servicios que *si* la
utilizan.
Y no son *pocos*, tienes razón... pero lo dejo en manos del descubridor ;).

Puedes subir otro diff modificado o bien lo notificamos en el reporte, ¿qué prefieres?

Parece que así funciona.
Ahora lo subo.

Saludos.

Saludos.
Javi.
--- start-stop-daemon.c	2007-05-15 14:33:25.000000000 +0200
+++ start-stop-daemon.new.c	2007-06-01 00:26:57.000000000 +0200
@@ -117,7 +117,7 @@
 
 static int testmode = 0;
 static int quietmode = 0;
-static int exitnodo = 1;
+static int exitnodo = 0;
 static int start = 0;
 static int stop = 0;
 static int background = 0;
@@ -341,7 +341,8 @@
 "  -m|--make-pidfile             create the pidfile before starting\n"
 "  -R|--retry <schedule>         check whether processes die, and retry\n"
 "  -t|--test                     test mode, don't do anything\n"
-"  -o|--oknodo                   exit status 0 (not 1) if nothing done\n"
+"  -e|--errornodo                exit status 1 (not 0) if nothing done\n"
+"  -o|--oknodo 			 obsoleted (default behaviour)\n"
 "  -q|--quiet                    be more quiet\n"
 "  -v|--verbose                  be more verbose\n"
 "\n"
@@ -351,7 +352,7 @@
 " forever                         repeat remainder forever\n"
 "or <schedule> may be just <timeout>, meaning <signal>/<timeout>/KILL/<timeout>\n"
 "\n"
-"Exit status:  0 = done      1 = nothing done (=> 0 if --oknodo)\n"
+"Exit status:  0 = done      0 = nothing done (=> 1 if --errornodo)\n"
 "              3 = trouble   2 = with --retry, processes wouldn't die\n",
 	       VERSION);
 }
@@ -525,6 +526,7 @@
 		{ "version",	  0, NULL, 'V'},
 		{ "startas",	  1, NULL, 'a'},
 		{ "name",	  1, NULL, 'n'},
+		{ "errornodo",	  0, NULL, 'e'},
 		{ "oknodo",	  0, NULL, 'o'},
 		{ "pidfile",	  1, NULL, 'p'},
 		{ "quiet",	  0, NULL, 'q'},
@@ -573,11 +575,13 @@
 		case 'n':  /* --name <process-name> */
 			cmdname = optarg;
 			break;
-		case 'o':  /* --oknodo */
-			exitnodo = 0;
+		case 'e':  /* --errornodo */
+			exitnodo = 1;
 			break;
+		case 'o':  /* --oknodo */
+		        break;
 		case 'p':  /* --pidfile <pid-file> */
-			pidfile = optarg;
+		        pidfile = optarg;
 			break;
 		case 'q':  /* --quiet */
 			quietmode = 1;

Reply to: