svn commit: r319843 - head/etc/rc.d

Gregory Neil Shapiro gshapiro at FreeBSD.org
Mon Jun 12 01:26:37 UTC 2017


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"


More information about the svn-src-head mailing list