Currently, the conf.d file ends with the following code:- # The conditional above has a false-positive "failure" return value as a # side-effect, and since it's the last statement, without the next line, this # script returns failure. return 0 It seems somewhat laboured. The underlying problem can be solved by using if:- if [ "${SVCNAME}" != mysql ]; then rc_provide="!mysql" fi Alternatively, for those that insist on one-liners:- if [ "${SVCNAME}" != mysql ]; then rc_provide="!mysql"; fi Thereafter, the return statement - along with its distracting comment - may be removed.