1
0
Fork 0

Merge branch 'devel' of https://github.com/arangodb/arangodb into devel

This commit is contained in:
Jan Steemann 2016-05-04 19:35:16 +02:00
commit 0001266c6a
1 changed files with 10 additions and 0 deletions

View File

@ -47,16 +47,26 @@ PrivilegeFeature::PrivilegeFeature(
}
void PrivilegeFeature::collectOptions(std::shared_ptr<ProgramOptions> options) {
options->addSection("server", "Server features");
#ifdef ARANGODB_HAVE_SETUID
options->addHiddenOption("--uid",
"switch to user-id after reading config files",
new StringParameter(&_uid));
options->addHiddenOption("--server.uid",
"switch to user-id after reading config files",
new StringParameter(&_uid));
#endif
#ifdef ARANGODB_HAVE_SETGID
options->addHiddenOption("--gid",
"switch to group-id after reading config files",
new StringParameter(&_gid));
options->addHiddenOption("--server.gid",
"switch to group-id after reading config files",
new StringParameter(&_gid));
#endif
}