diff options
author | dteske <dteske@FreeBSD.org> | 2014-07-16 19:02:30 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2014-07-16 19:02:30 +0000 |
commit | 6b81ba954db0f10af2a0335fbd97d80923b36216 (patch) | |
tree | 27b9d5246eeebc69855452bb7f4646696ceddbfd /usr.sbin/service/service.sh | |
parent | c55c1622263cb6931f9fb5068bd8fdb28850081d (diff) | |
download | FreeBSD-src-6b81ba954db0f10af2a0335fbd97d80923b36216.zip FreeBSD-src-6b81ba954db0f10af2a0335fbd97d80923b36216.tar.gz |
Revert previous revision (r268461) for reasons documented in PR.
To use tmux in an rc.d script, use the new-session flag "-d".
To use screen in an rc.d script, use the "-dm" flag.
If you really need to launch an attached session, manually
export TERM=xterm (FreeBSD 9.0 or higher) or export TERM=cons25
for older releases.
Reported by: bdrewery
Discussed on: src-committers, svn-src-all, svn-src-head
PR: bin/191869
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 3eb24fd..b5fd607 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 TERM="$TERM" $dir/$script $* + exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin $dir/$script $* fi done |