Skip to content

Commit d5656a6

Browse files
authored
start xrootd as privileged
IF xrootd multuser is installed start xrootd as privileged
1 parent 0963242 commit d5656a6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

osgtest/tests/test_158_xrootd_tpc.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ def test_02_create_secrets(self):
9696
core.config['xrootd.tpc.macaroon-secret-2'], "64"], "Creating symmetric key")
9797

9898
def test_03_start_xrootd(self):
99-
core.config['xrootd_tpc_service_1'] = "xrootd@third-party-copy-1"
100-
core.config['xrootd_tpc_service_2'] = "xrootd@third-party-copy-2"
99+
if core.rpm_is_installed("xrootd-multiuser"):
100+
core.config['xrootd_tpc_service_1'] = "xrootd-privileged@third-party-copy-1"
101+
core.config['xrootd_tpc_service_2'] = "xrootd-privileged@third-party-copy-2"
102+
else:
103+
core.config['xrootd_tpc_service_1'] = "xrootd@third-party-copy-1"
104+
core.config['xrootd_tpc_service_2'] = "xrootd@third-party-copy-2"
101105
service.check_start(core.config['xrootd_tpc_service_1'], log_to_check = '/var/log/xrootd/third-party-copy-1/xrootd.log', min_up_time = 5)
102106
service.check_start(core.config['xrootd_tpc_service_2'], log_to_check = '/var/log/xrootd/third-party-copy-2/xrootd.log', min_up_time = 5)
103107
core.state['xrootd.started-http-server-1'] = True

0 commit comments

Comments
 (0)