diff options
author | Bill Nottingham <notting@redhat.com> | 2008-05-08 13:46:53 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-05-08 13:46:53 -0400 |
commit | 73a91036b96450f976c5e45d3478d4b6f905c79a (patch) | |
tree | 592ef5e4bc0a581094a2f5fb8ca4d74337785ec7 | |
parent | 8993d6ce77fd34fd17f5477d484caa6d36a4759e (diff) | |
download | initscripts-73a91036b96450f976c5e45d3478d4b6f905c79a.tar initscripts-73a91036b96450f976c5e45d3478d4b6f905c79a.tar.gz initscripts-73a91036b96450f976c5e45d3478d4b6f905c79a.tar.bz2 initscripts-73a91036b96450f976c5e45d3478d4b6f905c79a.tar.xz initscripts-73a91036b96450f976c5e45d3478d4b6f905c79a.zip |
don't set $LANG, rely on it to inherit from system locales (#422141)
-rwxr-xr-x | service | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -35,7 +35,7 @@ while [ $# -gt 0 ]; do *) if ! is_ignored_file "${SERVICE}" \ && [ -x "${SERVICEDIR}/${SERVICE}" ]; then - env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status + env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status fi ;; esac @@ -44,8 +44,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" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" stop - env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" start + env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" stop + env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" start exit $? fi elif [ -z "${SERVICE}" ]; then @@ -59,7 +59,7 @@ while [ $# -gt 0 ]; do done if [ -f "${SERVICEDIR}/${SERVICE}" ]; then - env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} + env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} else echo $"${SERVICE}: unrecognized service" >&2 exit 1 |