/[baselayout]/trunk/src/start-stop-daemon.c
Gentoo

Diff of /trunk/src/start-stop-daemon.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2586 Revision 2587
678 678
679 /* Respect RC as well as how we are called */ 679 /* Respect RC as well as how we are called */
680 if (rc_is_env ("RC_QUIET", "yes") && ! verbose) 680 if (rc_is_env ("RC_QUIET", "yes") && ! verbose)
681 quiet = true; 681 quiet = true;
682 682
683 /* Allow start-stop-daemon --signal HUP --exec /usr/sbin/dnsmasq
684 * instead of forcing --stop --oknodo as well */
685 if (! start && ! stop)
686 if (sig != SIGINT &&
687 sig != SIGTERM &&
688 sig != SIGQUIT &&
689 sig != SIGKILL)
690 {
691 oknodo = true;
692 stop = true;
693 }
694
683 if (start == stop) 695 if (start == stop)
684 eerrorx ("%s: need one of --start or --stop", progname); 696 eerrorx ("%s: need one of --start or --stop", progname);
685 697
686 if (start && ! exec) 698 if (start && ! exec)
687 eerrorx ("%s: --start needs --exec", progname); 699 eerrorx ("%s: --start needs --exec", progname);

Legend:
Removed from v.2586  
changed lines
  Added in v.2587

  ViewVC Help
Powered by ViewVC 1.1.20