1
0
Fork 0

added server.uid as alias for uid

This commit is contained in:
Frank Celler 2016-05-04 19:03:07 +02:00
parent 5c8a9fa922
commit 867f186270
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) { void PrivilegeFeature::collectOptions(std::shared_ptr<ProgramOptions> options) {
options->addSection("server", "Server features");
#ifdef ARANGODB_HAVE_SETUID #ifdef ARANGODB_HAVE_SETUID
options->addHiddenOption("--uid", options->addHiddenOption("--uid",
"switch to user-id after reading config files", "switch to user-id after reading config files",
new StringParameter(&_uid)); new StringParameter(&_uid));
options->addHiddenOption("--server.uid",
"switch to user-id after reading config files",
new StringParameter(&_uid));
#endif #endif
#ifdef ARANGODB_HAVE_SETGID #ifdef ARANGODB_HAVE_SETGID
options->addHiddenOption("--gid", options->addHiddenOption("--gid",
"switch to group-id after reading config files", "switch to group-id after reading config files",
new StringParameter(&_gid)); new StringParameter(&_gid));
options->addHiddenOption("--server.gid",
"switch to group-id after reading config files",
new StringParameter(&_gid));
#endif #endif
} }