diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-11 08:47:13 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-11 08:47:13 +0000 |
commit | c5fe8c1db278af2d6f1d172e0c9e9fcd6f509b7c (patch) | |
tree | 50ac9405a24d251fb4ba2539ee0f6a8cf7f95480 /cpp/src/IceGrid/DescriptorHelper.cpp | |
parent | Fixed XML writing (diff) | |
download | ice-c5fe8c1db278af2d6f1d172e0c9e9fcd6f509b7c.tar.bz2 ice-c5fe8c1db278af2d6f1d172e0c9e9fcd6f509b7c.tar.xz ice-c5fe8c1db278af2d6f1d172e0c9e9fcd6f509b7c.zip |
Added support for setting user under which the process should run.
Diffstat (limited to 'cpp/src/IceGrid/DescriptorHelper.cpp')
-rw-r--r-- | cpp/src/IceGrid/DescriptorHelper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/DescriptorHelper.cpp b/cpp/src/IceGrid/DescriptorHelper.cpp index 4413e1f03c6..89ee8a55c10 100644 --- a/cpp/src/IceGrid/DescriptorHelper.cpp +++ b/cpp/src/IceGrid/DescriptorHelper.cpp @@ -1044,6 +1044,11 @@ ServerHelper::operator==(const ServerHelper& helper) const return false; } + if(_desc->user != helper._desc->user) + { + return false; + } + return true; } @@ -1066,6 +1071,7 @@ ServerHelper::instantiateImpl(const ServerDescriptorPtr& instance, instance->activation = resolve(_desc->activation, "activation"); instance->applicationDistrib = _desc->applicationDistrib; instance->allocatable = _desc->allocatable; + instance->user = resolve(_desc->user, "user"); if(!instance->activation.empty() && instance->activation != "manual" && instance->activation != "on-demand" && instance->activation != "always") { @@ -1147,6 +1153,10 @@ ServerHelper::printImpl(Output& out, const string& application, const string& no { out << nl << "deactivationTimeout = `" << _desc->deactivationTimeout << "'"; } + if(!_desc->user.empty()) + { + out << nl << "user = `" << _desc->user << "'"; + } if(!_desc->applicationDistrib) { out << nl << "application distribution = `false'"; |