message="SHOW *";
command="show";
}
- else if(command=="quit" || command=="QUIT") {
+ else if(command=="quit" || command=="QUIT" || command == "stop" || command == "STOP") {
message="QUIT";
}
else if(command=="status" || command=="STATUS") {
To stop the recursor by hand, run::
- # rec_control quit
+ # rec_control quit-nicely
However, the recommended way of starting and stopping the recursor is to use
:manpage:`systemctl(1)` or the init.d script.
"list-dnssec-algos list supported DNSSEC algorithms\n"
"ping check that all threads are alive\n"
"quit stop the recursor daemon\n"
- "quit-nicely stop the recursor daemon nicely\n"
+ "quit-nicely or stop stop the recursor daemon nicely\n"
"reload-acls reload ACLS\n"
"reload-lua-script [filename] (re)load Lua script\n"
"reload-yaml Reload runtime settable parts of YAML settings\n"
if (cmd == "version") {
return {0, getPDNSVersion() + "\n"};
}
- if (cmd == "quit-nicely") {
+ if (cmd == "quit-nicely" || cmd == "stop") {
*command = &doExitNicely;
return {0, "bye nicely\n"};
}