+++ This bug was initially created as a clone of Bug #237953 +++ Description of problem: Following code returns error code 0 when function script does not exist irrespectively of status of the service. if [ -f /etc/init.d/functions ] ; then . /etc/init.d/functions elif [ -f /etc/rc.d/init.d/functions ] ; then . /etc/rc.d/init.d/functions else exit 0 fi There is also minor error in error code for unimplemented feature (1 instead of 3 at the end of the script). Version-Release number of selected component (if applicable): all How reproducible: always Steps to Reproduce: 1. rename functions script 2. service cups start/status 3. echo $? Actual results: 0 Expected results: non-zero error code Additional info: When fixing this bug, please obbey our init script guidelines and be sure that status command is run correctly. Our guidelines are on following two pages: http://intranet.corp.redhat.com/ic/intranet/InitscriptsSpec.html http://intranet.corp.redhat.com/ic/intranet/InitscriptGuidelines.html For an example of the script that returns the error codes correctly and always runs status see: http://devserv.devel.redhat.com/~mmarcini/amd This bug is tracked by 237789.