start_stop_daemon: accept (and ignore) -R <param>
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 27 Sep 2008 01:05:13 +0000 (01:05 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 27 Sep 2008 01:05:13 +0000 (01:05 -0000)
debianutils/start_stop_daemon.c

index 99864d0a463f891e93fda8b33a8a20ebd7281427..ab607bde0b55e15458948698be6c820e2e6e8476 100644 (file)
@@ -349,11 +349,11 @@ int start_stop_daemon_main(int argc UNUSED_PARAM, char **argv)
        opt_complementary = "K:S:K--S:S--K:m?p:K?xpun:S?xa"
                USE_FEATURE_START_STOP_DAEMON_FANCY("q-v");
        opt = getopt32(argv, "KSbqtma:n:s:u:c:x:p:"
-               USE_FEATURE_START_STOP_DAEMON_FANCY("ovN:"),
-//             USE_FEATURE_START_STOP_DAEMON_FANCY("ovN:R:"),
+               USE_FEATURE_START_STOP_DAEMON_FANCY("ovN:R:"),
                &startas, &cmdname, &signame, &userspec, &chuid, &execname, &pidfile
                USE_FEATURE_START_STOP_DAEMON_FANCY(,&opt_N)
-//             USE_FEATURE_START_STOP_DAEMON_FANCY(,&retry_arg)
+               /* We accept and ignore -R <param> / --retry <param> */
+               USE_FEATURE_START_STOP_DAEMON_FANCY(,NULL)
        );
 
        if (opt & OPT_s) {