Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2017 01:26:36 +0000 (UTC)
From:      Gregory Neil Shapiro <gshapiro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319843 - head/etc/rc.d
Message-ID:  <201706120126.v5C1QaqZ093555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706120126.v5C1QaqZ093555>