|
21 | 21 | if named third-party-copy-1
|
22 | 22 | set HttpPort = 9001
|
23 | 23 | macaroons.secretkey /etc/xrootd/macaroon-secret-1
|
| 24 | +xrd.port 9001 |
24 | 25 | fi
|
25 | 26 | if named third-party-copy-2
|
26 | 27 | set HttpPort = 9002
|
27 | 28 | macaroons.secretkey /etc/xrootd/macaroon-secret-2
|
| 29 | +xrd.port 9002 |
28 | 30 | fi
|
29 | 31 | """
|
30 | 32 |
|
@@ -94,9 +96,13 @@ def test_02_create_secrets(self):
|
94 | 96 | core.config['xrootd.tpc.macaroon-secret-2'], "64"], "Creating symmetric key")
|
95 | 97 |
|
96 | 98 | def test_03_start_xrootd(self):
|
97 |
| - core.config['xrootd_tpc_service_1'] = "xrootd@third-party-copy-1" |
98 |
| - core.config['xrootd_tpc_service_2'] = "xrootd@third-party-copy-2" |
99 |
| - service.check_start(core.config['xrootd_tpc_service_1'], log_to_check = '/var/log/xrootd/third-party-copy-1/xrootd.log') |
100 |
| - service.check_start(core.config['xrootd_tpc_service_2'], log_to_check = '/var/log/xrootd/third-party-copy-2/xrootd.log') |
| 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" |
| 105 | + 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) |
| 106 | + 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) |
101 | 107 | core.state['xrootd.started-http-server-1'] = True
|
102 | 108 | core.state['xrootd.started-http-server-2'] = True
|
0 commit comments