From 867f186270ffb8d9a9359686b3c1798dd24a8c9a Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Wed, 4 May 2016 19:03:07 +0200 Subject: [PATCH] added server.uid as alias for uid --- lib/ApplicationFeatures/PrivilegeFeature.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ApplicationFeatures/PrivilegeFeature.cpp b/lib/ApplicationFeatures/PrivilegeFeature.cpp index 10be646f7c..1a0446a155 100644 --- a/lib/ApplicationFeatures/PrivilegeFeature.cpp +++ b/lib/ApplicationFeatures/PrivilegeFeature.cpp @@ -47,16 +47,26 @@ PrivilegeFeature::PrivilegeFeature( } void PrivilegeFeature::collectOptions(std::shared_ptr 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 }