summaryrefslogtreecommitdiff
path: root/bin/object_scanner_dmn.sh
blob: bab28edc20eb9c471e0b25d01bbdfeba17027d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
while [ 1 ];
do
	count=`ls -l core.* |wc -l`
	if [ $count -lt 3 ]
	then
		ulimit -c unlimited
	else
		ulimit -c 0
	fi

	./object_scanner  >> /dev/null
	echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
	sleep 30
done