aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/service
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-02-05 04:32:49 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-02-05 04:32:49 +0000
commit736a5a6d1dbbdae68eb102c2ba9c114aafd61821 (patch)
tree54f632fc95e66cccf72d850fe2f5408924097ca5 /usr.sbin/service
parent85c8521e67a73f2076a280e7ae3bf4f44adcef76 (diff)
downloadsrc-736a5a6d1dbbdae68eb102c2ba9c114aafd61821.tar.gz
src-736a5a6d1dbbdae68eb102c2ba9c114aafd61821.zip
service(8): set the environment of the "daemon" class before invoking
As mentioned in r357562, this gives the user a single place to configure environment variables that need to be used for various services -- the "daemon" class -- for, e.g., configuring a system-wide HTTP proxy. This is a part of D21481. Submitted by: Andrew Gierth <andrew_tao173.riddles.org.uk>
Notes
Notes: svn path=/head/; revision=357564
Diffstat (limited to 'usr.sbin/service')
-rwxr-xr-xusr.sbin/service/service.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/service/service.sh b/usr.sbin/service/service.sh
index fa002fb0a817..42a50fcf61b9 100755
--- a/usr.sbin/service/service.sh
+++ b/usr.sbin/service/service.sh
@@ -165,7 +165,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 -L 0/daemon HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin "$dir/$script" "$@"
fi
done