Skip to content

Commit 52e7cec

Browse files
committed
Add EL6 service customization
1 parent 9f7975b commit 52e7cec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

osgtest/tests/test_150_xrootd.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_01_start_xrootd(self):
4848
core.config['xrootd.config'] = '/etc/xrootd/config.d/10-osg-test.cfg'
4949
else:
5050
core.config['xrootd.config'] = '/etc/xrootd/config.d/99-osg-test.cfg'
51+
core.config['xrootd.service-defaults'] = '/etc/sysconfig/xrootd'
5152
core.config['xrootd.multiuser'] = False
5253
core.state['xrootd.started-server'] = False
5354
core.state['xrootd.backups-exist'] = False
@@ -78,6 +79,11 @@ def test_01_start_xrootd(self):
7879

7980
files.write(core.config['xrootd.config'], xrootd_config, owner='xrootd', backup=True)
8081

82+
if core.el_release() < 7:
83+
files.write(core.config['xrootd.service-defaults'],
84+
'XROOTD_DEFAULT_OPTIONS="-l /var/log/xrootd/xrootd.log -c /etc/xrootd/xrootd-standalone.cfg -k fifo"',
85+
owner="xrootd", chown=(user.pw_uid, user.pw_gid))
86+
8187
authfile = '/etc/xrootd/auth_file'
8288
files.write(authfile, AUTHFILE_TEXT, owner="xrootd", chown=(user.pw_uid, user.pw_gid))
8389

osgtest/tests/test_840_xrootd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def test_01_stop_xrootd(self):
1616
files.restore('/etc/xrootd/auth_file', "xrootd")
1717
if not core.rpm_is_installed('xrootd-lcmaps'):
1818
files.restore('/etc/grid-security/xrd/xrdmapfile', "xrootd")
19+
if core.el_release() < 7:
20+
files.restore(core.config['xrootd.service-defaults'], "xrootd")
1921
core.skip_ok_unless_installed('xrootd', by_dependency=True)
2022
self.skip_ok_if(core.state['xrootd.started-server'], 'did not start server')
2123
service.check_stop(core.config['xrootd_service'])

0 commit comments

Comments
 (0)