Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2014 02:18:55 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268641 - head/usr.sbin/service
Message-ID:  <201407150218.s6F2Itj8044531@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Tue Jul 15 02:18:55 2014
New Revision: 268641
URL: http://svnweb.freebsd.org/changeset/base/268641

Log:
  Fix an issue with service(8) where utilities such as screen(1) and tmux(1)
  would behave differently when utilizing rc-script was invoked manually vs.
  service(8). The issue being that these utilities require the TERM environ
  variable to be set and service(8) was not passing it down.
  
  Reported by:	Michael Dexter <editor@callfortesting.org>
  PR:		bin/191869
  Reviewed by:	allanjude
  MFC after:	3 days
  X-MFC-to:	stable/10, stable/9

Modified:
  head/usr.sbin/service/service.sh

Modified: head/usr.sbin/service/service.sh
==============================================================================
--- head/usr.sbin/service/service.sh	Tue Jul 15 01:03:29 2014	(r268640)
+++ head/usr.sbin/service/service.sh	Tue Jul 15 02:18:55 2014	(r268641)
@@ -139,7 +139,7 @@ cd /
 for dir in /etc/rc.d $local_startup; do
 	if [ -x "$dir/$script" ]; then
 		[ -n "$VERBOSE" ] && echo "$script is located in $dir"
-		exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin $dir/$script $*
+		exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin TERM="$TERM" $dir/$script $*
 	fi
 done
 



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