generic init script now performs status check by verifying whether pids from pid files are running; also exits with appropriate exit status depending on whether commands succeeded or not