summaryrefslogtreecommitdiffstats
path: root/slobrok/src/apps
diff options
context:
space:
mode:
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();