summaryrefslogtreecommitdiffstats
path: root/slobrok/src/apps
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-04-05 19:35:49 +0200
committerGitHub <noreply@github.com>2018-04-05 19:35:49 +0200
commitc84ed73f53884f74dfedaf6d62a448b7a0dd8a17 (patch)
tree4b18419be99ea426c72e7905ec11f0feb722c6b5 /slobrok/src/apps
parent6f968e2e3ff884f9087e770a15b8b17f7f4c77ee (diff)
Revert "Revert "Balder/quick restart of slobrok""
Diffstat (limited to 'slobrok/src/apps')
-rw-r--r--slobrok/src/apps/slobrok/slobrok.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/slobrok/src/apps/slobrok/slobrok.cpp b/slobrok/src/apps/slobrok/slobrok.cpp
index 277cc2f3a87..e69f2df53f0 100644
--- a/slobrok/src/apps/slobrok/slobrok.cpp
+++ b/slobrok/src/apps/slobrok/slobrok.cpp
@@ -50,7 +50,6 @@ int
App::Main()
{
uint32_t portnum = 2773;
- uint32_t statePort = 0;
vespalib::string cfgId;
int argi = 1;
@@ -61,9 +60,6 @@ App::Main()
case 'c':
cfgId = std::string(optArg);
break;
- case 's':
- statePort = atoi(optArg);
- break;
case 'p':
portnum = atoi(optArg);
break;
@@ -77,10 +73,11 @@ App::Main()
if (cfgId.empty()) {
LOG(debug, "no config id specified");
ConfigShim shim(portnum);
- mainobj.reset(new SBEnv(shim));
+ mainobj = std::make_unique<SBEnv>(shim);
} else {
- ConfigShim shim(portnum, statePort, cfgId);
- mainobj.reset(new SBEnv(shim));
+ ConfigShim shim(portnum, cfgId);
+ shim.enableStateServer(true);
+ mainobj = std::make_unique<SBEnv>(shim);
}
hook_sigterm();
res = mainobj->MainLoop();