summaryrefslogtreecommitdiff
path: root/misc/scripts/start
blob: f73fafd729e33ce82384e786d1974f37c497b3e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# /bin/bash

./athena-start start
sleep 30

while [ true ] ; do
if [ "      0" = "$(ps | grep -e login | wc -l)" ] ||
	[ "      0" = "$(ps | grep -e char | wc -l)" ] ||
	[ "      0" = "$(ps | grep -e map  | wc -l)" ]; then
printf "Error:"
date
	sleep 10
	printf "Checking:"
	date
	if [ "      0" = "$(ps | grep -e login | wc -l)" ] ||
		[ "      0" = "$(ps | grep -e char | wc -l)" ] ||
		[ "      0" = "$(ps | grep -e map  | wc -l)" ]; then
	printf "Error Confirmation:"
	date
	printf "Restoration:"
	date
	./athena-start start
	else
	printf "Check Miss Sorry:"
	date
	fi
else
#printf "Check OK:"
#date
fi
sleep 10
done