File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -197,11 +197,11 @@ start_service() {
197197stop_service () {
198198 if [ -e ${PIDFILE} ]; then
199199 echo -n " Stopping ${SERVICE_NAME} : "
200- if kill -TERM $( cat ${PIDFILE} ) 2> /dev/null; then
200+ if kill -TERM $( cat ${PIDFILE} 2> /dev/null ) 2> /dev/null; then
201201 sec=1
202202 while [ " $sec " -le 15 ]; do
203203 if [ -e ${PIDFILE} ]; then
204- if kill -0 $( cat ${PIDFILE} ) 2> /dev/null; then
204+ if kill -0 $( cat ${PIDFILE} 2> /dev/null ) 2> /dev/null; then
205205 echo -n " . "
206206 sleep 1
207207 else
@@ -214,9 +214,9 @@ stop_service() {
214214 done
215215 fi
216216
217- if kill -0 $( cat ${PIDFILE} ) 2> /dev/null; then
217+ if kill -0 $( cat ${PIDFILE} 2> /dev/null ) 2> /dev/null; then
218218 echo " Unable to shut down nicely, killing the process!"
219- kill -KILL $( cat ${PIDFILE} ) 2> /dev/null
219+ kill -KILL $( cat ${PIDFILE} 2> /dev/null ) 2> /dev/null
220220 else
221221 echo " complete!"
222222 fi
You can’t perform that action at this time.
0 commit comments