+2008-01-16 Guillem Jover <guillem@debian.org>
+
+ * utils/start-stop-daemon.c (do_stop): Do not print messages when
+ running on quiet and test modes.
+ (run_stop_schedule): Likewise.
+ (main): Likewise.
+
2008-01-16 Guillem Jover <guillem@debian.org>
* utils/start-stop-daemon.c (do_pidfile): Cache pid value over
* Keep checking for the process when start-stop-daemon is called with
--retry even if the daemon removed the pidfile. Closes: #460903
Thanks to Justin Pryzby for the analysis.
+ * Make --quiet silence --test in start-stop-daemon. Closes: #367998
[ Frank Lichtenheld ]
* Make the -L option of dpkg-parsechangelog actually work (it's
for (p = found; p; p = p->next) {
if (testmode) {
- printf("Would send signal %d to %d.\n",
- signal_nr, p->pid);
+ if (quietmode <= 0)
+ printf("Would send signal %d to %d.\n",
+ signal_nr, p->pid);
(*n_killed)++;
} else if (kill(p->pid, signal_nr) == 0) {
push(&killed, p->pid);
if (testmode) {
if (schedule != NULL) {
- printf("Ignoring --retry in test mode\n");
+ if (quietmode <= 0)
+ printf("Ignoring --retry in test mode\n");
schedule = NULL;
}
}
printf("%s already running.\n", execname ? execname : "process");
exit(exitnodo);
}
- if (testmode) {
+ if (testmode && quietmode <= 0) {
printf("Would start %s ", startas);
while (argc-- > 0)
printf("%s ", *argv++);
if (nicelevel)
printf(", and add %i to the priority", nicelevel);
printf(".\n");
- exit(0);
}
+ if (testmode)
+ exit(0);
if (quietmode < 0)
printf("Starting %s...\n", startas);
*--argv = startas;