-#!/bin/sh
+#!/bin/bash -x
+#
+# Copyright (C) 2013 Inktank <info@inktank.com>
+# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
+#
+# Author: Loic Dachary <loic@dachary.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Library Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Library Public License for more details.
+#
test -d dev/osd0/. && test -e dev/sudo && SUDO="sudo"
done
if [ $stop_all -eq 1 ]; then
- killall ceph-mon ceph-mds ceph-osd radosgw lt-radosgw apache2
+ for p in ceph-mon ceph-mds ceph-osd radosgw lt-radosgw apache2 ; do
+ while pkill $p ; do : ; done
+ done
pkill -f valgrind.bin.\*ceph-mon
$SUDO pkill -f valgrind.bin.\*ceph-osd
pkill -f valgrind.bin.\*ceph-mds