aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-02-28 16:37:16 +0000
committerBill Nottingham <notting@redhat.com>2003-02-28 16:37:16 +0000
commitf19fe45b3669acc1683d34334fa62a355212213e (patch)
tree67c1254597d9c87aaf2a16bdbce36d9e5d851096
parentf4a3f0f9e02e033b1e8547656a9fd34d28a16dae (diff)
downloadinitscripts-f19fe45b3669acc1683d34334fa62a355212213e.tar
initscripts-f19fe45b3669acc1683d34334fa62a355212213e.tar.gz
initscripts-f19fe45b3669acc1683d34334fa62a355212213e.tar.bz2
initscripts-f19fe45b3669acc1683d34334fa62a355212213e.tar.xz
initscripts-f19fe45b3669acc1683d34334fa62a355212213e.zip
pass TERM to scripts too
-rwxr-xr-xservice8
1 files changed, 4 insertions, 4 deletions
diff --git a/service b/service
index a67c5d57..4a5992b1 100755
--- a/service
+++ b/service
@@ -37,7 +37,7 @@ while [ $# -gt 0 ]; do
;;
*)
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
- env -i LANG=$LANG PATH=$PATH "${SERVICEDIR}/${SERVICE}" status
+ env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" status
fi
;;
esac
@@ -46,8 +46,8 @@ while [ $# -gt 0 ]; do
elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then
SERVICE="${1}"
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
- env -i LANG=$LANG PATH=$PATH "${SERVICEDIR}/${SERVICE}" stop
- env -i LANG=$LANG PATH=$PATH "${SERVICEDIR}/${SERVICE}" start
+ env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" stop
+ env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" start
exit $?
fi
elif [ -z "${SERVICE}" ]; then
@@ -61,7 +61,7 @@ while [ $# -gt 0 ]; do
done
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
- env -i LANG=$LANG PATH=$PATH "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
+ env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
else
echo $"${SERVICE}: unrecognized service" >&2
exit 1