From 709ef82796b5340fd286f1416ee967ac8c1979f8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 21 Sep 2009 13:47:27 -0400 Subject: Various cleanups to meet standards. (#524480) --- rc.d/init.d/netconsole | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rc.d') 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 -- cgit v1.2.1