diff options
author | Bill Nottingham <notting@redhat.com> | 2002-05-13 15:10:10 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-05-13 15:10:10 +0000 |
commit | f3d6dd6e6133cea3647f5ff761ce8aa17dacef18 (patch) | |
tree | f2b1cf7b460b68d1f50890d0a237ca15cc9e050b | |
parent | 999a939be768d6015c8126bc5d80354438020c3e (diff) | |
download | initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar.gz initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar.bz2 initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar.xz initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.zip |
cd / , not cd /etc/init.d
-rwxr-xr-x | service | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |