aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-01-07 20:07:44 +0000
committerBill Nottingham <notting@redhat.com>2008-01-07 20:07:44 +0000
commite64f509e445d7b1835e247136664cf91bc27866d (patch)
treea0e4d22565435ef2b213a3b38b4f0c02814badbf
parentb6e3b7a0761bdc5c91e19587edfde4d53e15a8df (diff)
downloadinitscripts-e64f509e445d7b1835e247136664cf91bc27866d.tar
initscripts-e64f509e445d7b1835e247136664cf91bc27866d.tar.gz
initscripts-e64f509e445d7b1835e247136664cf91bc27866d.tar.bz2
initscripts-e64f509e445d7b1835e247136664cf91bc27866d.tar.xz
initscripts-e64f509e445d7b1835e247136664cf91bc27866d.zip
just test for existence, so that errors are passed up (#427767)
-rwxr-xr-xservice2
1 files changed, 1 insertions, 1 deletions
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