aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-09-21 13:47:27 -0400
committerBill Nottingham <notting@redhat.com>2009-09-21 13:47:27 -0400
commit709ef82796b5340fd286f1416ee967ac8c1979f8 (patch)
treebc5064fce3c084249d4deb8f6393313010baf365 /rc.d/init.d
parent2e354f21e32d500bd762c4157d1c86975e9aa91b (diff)
downloadinitscripts-709ef82796b5340fd286f1416ee967ac8c1979f8.tar
initscripts-709ef82796b5340fd286f1416ee967ac8c1979f8.tar.gz
initscripts-709ef82796b5340fd286f1416ee967ac8c1979f8.tar.bz2
initscripts-709ef82796b5340fd286f1416ee967ac8c1979f8.tar.xz
initscripts-709ef82796b5340fd286f1416ee967ac8c1979f8.zip
Various cleanups to meet standards. (#524480)
Diffstat (limited to 'rc.d/init.d')
-rw-r--r--rc.d/init.d/netconsole4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole
index 172a82b9..dda464c1 100644
--- a/rc.d/init.d/netconsole
+++ b/rc.d/init.d/netconsole
@@ -90,6 +90,7 @@ start ()
if [ -n "$SYSLOGOPTS" ]; then
action $"Initializing netconsole" modprobe netconsole \
$SYSLOGOPTS
+ [ "$?" != "0" ] && RETVAL=1
fi
touch /var/lock/subsys/netconsole
}
@@ -98,6 +99,7 @@ stop ()
{
if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
action $"Disabling netconsole" rmmod netconsole;
+ [ "$?" != "0" ] && RETVAL=1
fi
rm -f /var/lock/subsys/netconsole
@@ -130,7 +132,7 @@ condrestart ()
case "$1" in
stop) stop ;;
status) status ;;
- start|restart|reload) restart ;;
+ start|restart|reload|force-reload) restart ;;
condrestart) condrestart ;;
*) usage ;;
esac