diff options
author | dteske <dteske@FreeBSD.org> | 2014-07-15 02:18:55 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2014-07-15 02:18:55 +0000 |
commit | bf1e81a37ae077af93aeb50195390345a991263a (patch) | |
tree | fcbe0a0a56ef96f11a5f320c0683dec9cc12c17c /usr.sbin/service/service.sh | |
parent | d6f3d65931d756087bb3c46dac38c3a6f7f765d9 (diff) | |
download | FreeBSD-src-bf1e81a37ae077af93aeb50195390345a991263a.zip FreeBSD-src-bf1e81a37ae077af93aeb50195390345a991263a.tar.gz |
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
Diffstat (limited to 'usr.sbin/service/service.sh')
-rwxr-xr-x | usr.sbin/service/service.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/service/service.sh b/usr.sbin/service/service.sh index b5fd607..3eb24fd 100755 --- a/usr.sbin/service/service.sh +++ b/usr.sbin/service/service.sh @@ -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 |