UltraMonkey-L7 V3(multi-thread implementation)
Revision | 3c363b86dad5fffc69c1d5e1d772aa67659f2936 (tree) |
---|---|
Time | 2014-02-07 15:04:34 |
Author | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
Merge branch 'ra-loglevel-modify' of git.sourceforge.jp:/gitroot/ultramonkey-l7/ultramonkey-l7-v3 into v3.1.1-devel
@@ -145,6 +145,12 @@ l7directord_status(){ | ||
145 | 145 | # Get Resource Monitor Method |
146 | 146 | ############################### |
147 | 147 | l7directord_monitor() { |
148 | + local loglevel | |
149 | + loglevel=${1:-err} | |
150 | + if ocf_is_probe; then | |
151 | + loglevel="info" | |
152 | + fi | |
153 | + | |
148 | 154 | isRunning; |
149 | 155 | RET=$? |
150 | 156 | if [ $RET -eq 1 ]; then |
@@ -158,7 +164,7 @@ l7directord_monitor() { | ||
158 | 164 | fi |
159 | 165 | elif [ $RET -eq 0 ]; then |
160 | 166 | MSG="l7direcotrd is not running." |
161 | - outputLog err ${OCF_NOT_RUNNING} ${MSG} | |
167 | + outputLog $loglevel ${OCF_NOT_RUNNING} ${MSG} | |
162 | 168 | return ${OCF_NOT_RUNNING} |
163 | 169 | fi |
164 | 170 | MSG="l7direcotrd does not work. (ps=$RET) " |
@@ -171,7 +177,7 @@ l7directord_monitor() { | ||
171 | 177 | ############################### |
172 | 178 | l7directord_start() { |
173 | 179 | outputLog info "l7directord is starting ..." |
174 | - l7directord_monitor | |
180 | + l7directord_monitor info | |
175 | 181 | RET=$? |
176 | 182 | if [ $RET -eq ${OCF_SUCCESS} ]; then |
177 | 183 | MSG="l7directord is already running." |
@@ -67,7 +67,7 @@ END | ||
67 | 67 | ############################### |
68 | 68 | l7vsd_start() { |
69 | 69 | ocf_log info "l7vsd is starting ..." |
70 | - l7vsd_monitor | |
70 | + l7vsd_monitor info | |
71 | 71 | RET=$? |
72 | 72 | if [ $RET -eq $OCF_SUCCESS ]; then |
73 | 73 | ocf_log info "l7vsd is already running." |
@@ -182,6 +182,12 @@ l7vsd_status(){ | ||
182 | 182 | # Get Resource Monitor Method |
183 | 183 | ############################### |
184 | 184 | l7vsd_monitor() { |
185 | + local loglevel | |
186 | + loglevel=${1:-err} | |
187 | + if ocf_is_probe; then | |
188 | + loglevel="info" | |
189 | + fi | |
190 | + | |
185 | 191 | isRunning; |
186 | 192 | RET=$? |
187 | 193 | if [ $RET -eq 1 ]; then |
@@ -195,7 +201,7 @@ l7vsd_monitor() { | ||
195 | 201 | fi |
196 | 202 | elif [ $RET -eq 0 ]; then |
197 | 203 | MSG="l7vsd is not running." |
198 | - outputLog err ${OCF_NOT_RUNNING} ${MSG} | |
204 | + outputLog $loglevel ${OCF_NOT_RUNNING} ${MSG} | |
199 | 205 | return $OCF_NOT_RUNNING |
200 | 206 | fi |
201 | 207 | MSG="l7vsd does not work. (ps=$RET) " |