aboutsummaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-05-13 15:10:10 +0000
committerBill Nottingham <notting@redhat.com>2002-05-13 15:10:10 +0000
commitf3d6dd6e6133cea3647f5ff761ce8aa17dacef18 (patch)
treef2b1cf7b460b68d1f50890d0a237ca15cc9e050b /service
parent999a939be768d6015c8126bc5d80354438020c3e (diff)
downloadinitscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar
initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar.gz
initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar.bz2
initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.tar.xz
initscripts-f3d6dd6e6133cea3647f5ff761ce8aa17dacef18.zip
cd / , not cd /etc/init.d
Diffstat (limited to 'service')
-rwxr-xr-xservice4
1 files changed, 2 insertions, 2 deletions
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