From e64f509e445d7b1835e247136664cf91bc27866d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 7 Jan 2008 20:07:44 +0000 Subject: just test for existence, so that errors are passed up (#427767) --- service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service b/service index 2f913784..eb70c83c 100755 --- a/service +++ b/service @@ -58,7 +58,7 @@ while [ $# -gt 0 ]; do esac done -if [ -x "${SERVICEDIR}/${SERVICE}" ]; then +if [ -f "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} else echo $"${SERVICE}: unrecognized service" >&2 -- cgit v1.2.1