root/start @ 5

Revision 1, 1.0 kB (checked in by jinshiro, 17 years ago)
Line 
1#!/bin/bash
2# modified by shazeya@syafi.com (NL130240)
3
4./athena-start start
5sleep 30
6
7while [ true ]; do
8    if [ "      0" = "$(ps | grep -e log | wc -l)" ] ||
9#    if [ "      0" = "$(ps | grep -e login | wc -l)" ] ||
10       [ "      0" = "$(ps | grep -e char  | wc -l)" ] ||
11       [ "      0" = "$(ps | grep -e map   | wc -l)" ]; then
12        printf "Error:"
13        date
14        sleep 10
15        printf "Checking:"
16        date
17        if [ "      0" = "$(ps | grep -e log | wc -l)" ] ||
18#        if [ "      0" = "$(ps | grep -e login | wc -l)" ] ||
19           [ "      0" = "$(ps | grep -e char  | wc -l)" ] ||
20           [ "      0" = "$(ps | grep -e map   | wc -l)" ]; then
21            printf "Error Confirmation:"
22            date
23            printf "Restoration:"
24            date
25            ./athena-start start
26        else
27            printf "Check Miss Sorry:"
28            date
29        fi
30#    else
31#        printf "Check OK:"
32#        date
33    fi
34    sleep 10
35done
Note: See TracBrowser for help on using the browser.