Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
src
/
ceph-run
1
#!/bin/sh
2
3
sleep=5
4
5
while [ true ]; do
6
"$@"
7
exit_code=$?
8
9
if [ $exit_code -gt 128 ]; then
10
case $(($exit_code-128)) in
11
3 | 4 | 5 | 6 | 8 | 11)
12
;;
13
*)
14
exit;
15
esac
16
echo ceph-run: $1 dumped core, restarting in $sleep seconds...
17
sleep $sleep
18
else
19
exit
20
fi
21
done