Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2016 05:55:28 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r293728 - stable/10/usr.sbin/service
Message-ID:  <201601120555.u0C5tS1u055426@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Tue Jan 12 05:55:28 2016
New Revision: 293728
URL: https://svnweb.freebsd.org/changeset/base/293728

Log:
  MFC: r287576
    service(8) -e does not respect /etc/rc.conf.d/* entries
  
  PR:		173454
  Submitted by:	giantlock@gmail.com (original patch)

Modified:
  stable/10/usr.sbin/service/service.sh
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/service/service.sh
==============================================================================
--- stable/10/usr.sbin/service/service.sh	Tue Jan 12 05:53:53 2016	(r293727)
+++ stable/10/usr.sbin/service/service.sh	Tue Jan 12 05:55:28 2016	(r293728)
@@ -71,6 +71,7 @@ if [ -n "$RESTART" ]; then
 		if grep -q ^rcvar $file; then
 			eval `grep ^name= $file`
 			eval `grep ^rcvar $file`
+			load_rc_config_var ${name} ${rcvar}
 			checkyesno $rcvar 2>/dev/null && run_rc_script ${file} stop
 		fi
 	done
@@ -100,6 +101,7 @@ if [ -n "$ENABLED" ]; then
 		if grep -q ^rcvar $file; then
 			eval `grep ^name= $file`
 			eval `grep ^rcvar $file`
+			load_rc_config_var ${name} ${rcvar}
 			checkyesno $rcvar 2>/dev/null && echo $file
 		fi
 	done



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