teuthology-nuke: reset rsyslog config

This commit is contained in:
Josh Durgin 2011-08-03 11:21:32 -07:00
parent d079d51037
commit e8676ce0eb

View File

@ -202,6 +202,15 @@ def nuke():
'/tmp/cephtest/binary/usr/local/bin/cmds',
'/tmp/cephtest/binary/usr/local/bin/cfuse',
run.Raw(';'),
'if', 'test', '-e', '/etc/rsyslog.d/80-cephtest.conf',
run.Raw(';'),
'then',
'sudo', 'rm', '-f', '--', '/etc/rsyslog.d/80-cephtest.conf',
run.Raw('&&'),
'sudo', 'initctl', 'restart', 'rsyslog',
run.Raw(';'),
'fi',
run.Raw(';'),
'find', '/tmp/cephtest', '-maxdepth', '1', '-name', 'mnt.*',
'-execdir', 'fusermount', '-u', '{}', ';',
run.Raw(';'),