Lines 145-158
Link Here
|
145 |
echo "${name} not running? (check $pidfile)." |
145 |
echo "${name} not running? (check $pidfile)." |
146 |
return 1 |
146 |
return 1 |
147 |
fi |
147 |
fi |
|
|
148 |
echo "${name} is running as pid ${rc_pid}." |
148 |
} |
149 |
} |
149 |
|
150 |
|
150 |
tomcat_poll() { |
151 |
tomcat_poll() { |
|
|
152 |
_prefix= |
151 |
while (true) ; do |
153 |
while (true) ; do |
152 |
rc_pid=$(tomcat_check_pidfile $pidfile) |
154 |
rc_pid=$(tomcat_check_pidfile $pidfile) |
153 |
[ -z "$rc_pid" ] && break |
155 |
[ -z "$rc_pid" ] && break |
|
|
156 |
echo -n ${_prefix:-"Waiting for PIDS: "}$rc_pid |
157 |
_prefix=", " |
154 |
sleep 2 |
158 |
sleep 2 |
155 |
done |
159 |
done |
|
|
160 |
if [ -n "$_prefix" ]; then |
161 |
echo "." |
162 |
fi |
156 |
} |
163 |
} |
157 |
|
164 |
|
158 |
tomcat_check_pidfile() { |
165 |
tomcat_check_pidfile() { |