Added status method.

Added a status method that is found in many init scripts.