Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
8efbd16c
Commit
8efbd16c
authored
Nov 06, 2015
by
Daniele Kruse
Browse files
Added configurable CTA frontend hostname and port in castor.conf
parent
362db651
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmdline/CTACmd.cpp
View file @
8efbd16c
...
...
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
"castor/common/CastorConfiguration.hpp"
#include
"cmdline/CTACmd.hpp"
#include
"common/exception/Exception.hpp"
...
...
@@ -85,7 +86,7 @@ int CTACopyCmd::sendCommand(const int argc, const char **argv) const {
// formatCommandPath
//------------------------------------------------------------------------------
std
::
string
CTACopyCmd
::
formatCommandPath
(
const
int
argc
,
const
char
**
argv
)
const
{
std
::
string
cmdPath
=
"root://
localhost:10955
//"
;
std
::
string
cmdPath
=
"root://
"
+
castor
::
common
::
CastorConfiguration
::
getConfig
().
getConfEntString
(
"TapeServer"
,
"CTAFrontendHostAndPort"
)
+
"
//"
;
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
{
if
(
i
)
cmdPath
+=
"&"
;
cmdPath
+=
encode
(
std
::
string
(
argv
[
i
]));
...
...
tapeserver/castor/castor.conf
View file @
8efbd16c
...
...
@@ -660,6 +660,9 @@
# This is the host and port number of the remote EOS xroot server.
#TapeServer EOSRemoteHostAndPort localhost:1094
# This is the host and port number of the CTA frontend server.
#TapeServer CTAFrontendHostAndPort localhost:10955
## Tape Bridge Clients: dumptp, readtp and writetp #############################
# The inclusive low port of the tapebridge client callback port number range.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment