From e8676ce0ebca6e95a3aa2cb83c54be0b3f4ae847 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Wed, 3 Aug 2011 11:21:32 -0700 Subject: [PATCH] teuthology-nuke: reset rsyslog config --- teuthology/run.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teuthology/run.py b/teuthology/run.py index 29c3efe296a9b..7d57764e5fd75 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -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(';'), -- 2.39.5