mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
unbound windows option to start and stop the service.
git-svn-id: file:///svn/unbound/trunk@2503 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
68d82e9ce4
commit
0f57f21ca2
2 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue