Watch Dog (wd) Script
Author: David

1. Direction simple description:
.
├── apps            #Store watch dog monitor data file with ".wd"
│   ├── sad.wd
│   ├── sas.wd
│   └── sau.wd
├── apps.conf       #Config the whitch file will be monitored
├── base.conf       #sawd base config file
├── clear.sh        #Clear all "*.wd" files' status to be OK and clear the log files
├── conf.sh         #Write parameters' to config file
├── disable.sh      #Disable watch dog script
├── enable.sh       #Enable watch dog script
├── hb -> ./hb.sh   #Link to hb.sh
├── hb.sh           #Heatbeat script
├── pause.sh        #Pause the wd script
├── readme          
├── resume.sh       #Resume the wd script
├── sawd -> ./start.sh  #Link to start.sh
├── start.sh        #Start the wd script
├── steup.sh        #Steup the link in up direction
└── stop.sh         #Stop the wd script with wd script inner control

2. hb.sh
./hb.sh [lable] [error code]
lable: the same to apps.conf the first column
error code: 0, OK; 1, error and need level 1 process; 2, error and need level 2 procee, etc.

3. apps.conf
Column1: wd data file with path 
Column2: check interval time (s)
Column3: hightest error process level
Column4: leve1 process method
Column5: leve2 process method
Column6: leve3 process method

4. xxx.wd
Line1: error code
Line2: heatbeat time

5. Quick start
  5.1. Insert monitor info to "apps.conf"
  5.2. Use "hb.sh" script to report app's status
