fp7-ofelia / ocf

OFELIA Control Framework (OCF) is a set of software tools for testbed management.
http://fp7-ofelia.github.com/ocf/
Other
18 stars 14 forks source link

OXAD init script throws warning on stop #187

Closed CarolinaFernandez closed 10 years ago

CarolinaFernandez commented 10 years ago

For instance:

kill: 139: No such process
CarolinaFernandez commented 10 years ago

Method do_stop has the following:

start-stop-daemon --stop --signal 2 --retry 5 --quiet --pidfile $PIDFILE
RETVAL="$?"
if [ "${PID}" != "" ]; then
    kill ${PID}
fi

Once start-stop-daemon is invoked, the process is killed; but tried to kill twice on the following lines. This seems redundant; but in any case kill line's output is redirected to null.

Fixed in commit 597b270ebce9494b2e3febcd511d987c61452786.