Author: gshapiro
Date: Mon Jun 12 01:26:36 2017
New Revision: 319843
URL: https://svnweb.freebsd.org/changeset/base/319843

Log:
  Fix 'restart' action: rc.subr only expects to restart one service, not two.
  
  PR:           217393
  Reported by:  Martin Simmons
  MFC after:    1 week

Modified:
  head/etc/rc.d/sendmail

Modified: head/etc/rc.d/sendmail
==============================================================================
--- head/etc/rc.d/sendmail      Mon Jun 12 00:43:14 2017        (r319842)
+++ head/etc/rc.d/sendmail      Mon Jun 12 01:26:36 2017        (r319843)
@@ -206,12 +206,14 @@ required_files=
 if checkyesno sendmail_submit_enable; then
        name="sendmail_submit"
        rcvar="sendmail_submit_enable"
+       _rc_restart_done=false
        run_rc_command "$1"
 fi
 
 if checkyesno sendmail_outbound_enable; then
        name="sendmail_outbound"
        rcvar="sendmail_outbound_enable"
+       _rc_restart_done=false
        run_rc_command "$1"
 fi
 
@@ -219,4 +221,5 @@ name="sendmail_msp_queue"
 rcvar="sendmail_msp_queue_enable"
 pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}"
 required_files="/etc/mail/submit.cf"
+_rc_restart_done=false
 run_rc_command "$1"
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to