store pid file into a bash variable
separate out the stop server procedure from move_to_final