aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-09-29 11:49:30 -0400
committerBill Nottingham <notting@redhat.com>2009-09-29 11:49:30 -0400
commit150a57c35f346c743b6fed88e27656d78b33a0b0 (patch)
tree7ec6d24cf18b8c6c2d679dffbe5a9f871769408c /rc.d/init.d
parent25a961362812fc5f150717e87a0f724940f6efc9 (diff)
downloadinitscripts-150a57c35f346c743b6fed88e27656d78b33a0b0.tar
initscripts-150a57c35f346c743b6fed88e27656d78b33a0b0.tar.gz
initscripts-150a57c35f346c743b6fed88e27656d78b33a0b0.tar.bz2
initscripts-150a57c35f346c743b6fed88e27656d78b33a0b0.tar.xz
initscripts-150a57c35f346c743b6fed88e27656d78b33a0b0.zip
More random return code fixes.
Diffstat (limited to 'rc.d/init.d')
-rw-r--r--rc.d/init.d/netconsole2
-rwxr-xr-xrc.d/init.d/netfs2
-rwxr-xr-xrc.d/init.d/network3
3 files changed, 4 insertions, 3 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole
index dda464c1..17296f8e 100644
--- a/rc.d/init.d/netconsole
+++ b/rc.d/init.d/netconsole
@@ -34,7 +34,7 @@ kernel=$(uname -r | cut -d. -f1-2)
usage ()
{
echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
- RETVAL=3
+ RETVAL=2
}
print_address_info ()
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index d75c2fd8..17cea9f8 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -166,7 +166,7 @@ case "$1" in
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
- exit 3
+ exit 2
esac
exit 0
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index fa6c5b9e..0c067427 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -289,10 +289,11 @@ case "$1" in
cd "$CWD"
$0 stop
$0 start
+ rc=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
- exit 3
+ exit 2
esac
exit $rc