From f3d6dd6e6133cea3647f5ff761ce8aa17dacef18 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 13 May 2002 15:10:10 +0000 Subject: cd / , not cd /etc/init.d --- service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service') diff --git a/service b/service index 07d2b109..3f5e71a0 100755 --- a/service +++ b/service @@ -25,7 +25,7 @@ do ;; *) if [ -z "${SERVICE}" -a $# -eq 1 -a "${1}" = "--status-all" ]; then - cd "${SERVICEDIR}" + cd / for SERVICE in *; do case "${SERVICE}" in functions | halt | killall | single| linuxconf| kudzu | \ @@ -41,7 +41,7 @@ do exit 0 elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then SERVICE="${1}" - cd "${SERVICEDIR}" + cd / if [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG=$LANG "${SERVICEDIR}/${SERVICE}" stop env -i LANG=$LANG "${SERVICEDIR}/${SERVICE}" start -- cgit v1.2.1