aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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