diff options
author | Henning Baldersheim <balder@oath.com> | 2018-04-05 14:34:14 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-04-05 14:34:14 +0200 |
commit | cefa0ed8d78a922dcb3fdec28fbf75b238932f7f (patch) | |
tree | 514d114825e1dcbdefcc21fbf3c73a9668134329 /slobrok/src/apps | |
parent | 5a283154b497d362265ad5a9e17ed019e5dd3239 (diff) |
Only bring up the state server with vespa-slobrok app.
Diffstat (limited to 'slobrok/src/apps')
-rw-r--r-- | slobrok/src/apps/slobrok/slobrok.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/slobrok/src/apps/slobrok/slobrok.cpp b/slobrok/src/apps/slobrok/slobrok.cpp index 5a1ddb918ba..e69f2df53f0 100644 --- a/slobrok/src/apps/slobrok/slobrok.cpp +++ b/slobrok/src/apps/slobrok/slobrok.cpp @@ -73,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, cfgId); - mainobj.reset(new SBEnv(shim)); + shim.enableStateServer(true); + mainobj = std::make_unique<SBEnv>(shim); } hook_sigterm(); res = mainobj->MainLoop(); |