--- etc/rc.d/sendmail.orig 2017-10-28 12:56:03.176883000 -0500 +++ etc/rc.d/sendmail 2017-10-28 12:56:27.228976000 -0500 @@ -200,6 +200,7 @@ } run_rc_command "$1" +_ret=$? required_files= @@ -220,3 +221,5 @@ pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}" required_files="/etc/mail/submit.cf" run_rc_command "$1" + +exit $(( $_ret > $? ? $_ret : $? ))