diff options
Diffstat (limited to 'resource/package/r3_certstore')
| -rw-r--r-- | resource/package/r3_certstore | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resource/package/r3_certstore b/resource/package/r3_certstore new file mode 100644 index 0000000..09cbb9f --- /dev/null +++ b/resource/package/r3_certstore @@ -0,0 +1,17 @@ +#!/bin/sh + +while [ 1 ]; do + count=`ls -l core.* |wc -l` + echo $count + if [ $count -lt 5 ] + then + echo "set unlimited" + ulimit -c unlimited + else + ulimit -c 0 + fi + + ./certstore --normal > /dev/null + echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log + sleep 10 +done |
