]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
unbound windows option to start and stop the service.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Sep 2011 13:22:04 +0000 (13:22 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Sep 2011 13:22:04 +0000 (13:22 +0000)
git-svn-id: file:///svn/unbound/trunk@2503 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
winrc/win_svc.c

index 1bd52fffaf9f3e071e642602805ad90d04aee1fa..030b44788c49c9c57a827d97911b5a0a642bc907 100644 (file)
@@ -1,3 +1,6 @@
+27 September 2011: Wouter
+       - unbound.exe -w windows option for start and stop service.
+
 23 September 2011: Wouter
        - TCP-upstream calculates tcp-ping so server selection works if there
          are alternatives.
index b1525f0c51ab8cff49c187f70e78b9ba15f27c51..7ac8b2611130983d652f4cf45babfdea9432e469 100644 (file)
@@ -489,6 +489,10 @@ wsvc_command_option(const char* wopt, const char* cfgfile, int v, int c)
                wsvc_remove(stdout);
        else if(strcmp(wopt, "service") == 0)
                service_start(cfgfile, v, c);
+       else if(strcmp(wopt, "start") == 0)
+               wsvc_rc_start(stdout);
+       else if(strcmp(wopt, "stop") == 0)
+               wsvc_rc_stop(stdout);
        else fatal_exit("unknown option: %s", wopt);
        exit(0);
 }