* lib/mcserv.init: Fix exit status.

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=44601
This commit is contained in:
Pavel Roskin 2001-07-14 00:32:44 +00:00
parent 9696da138d
commit 4ca052e8c7
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-07-13 Pavel Roskin <proski@gnu.org>
* lib/mcserv.init: Fix exit status.
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=44601
* lib/mc.ext.in: Anchor all regexes in the type/ rules except
"executable", which should follow a space. Simplify rules for
images. Add shell/ rule for *.info files. Fix all incorrect

View File

@ -18,11 +18,14 @@
# Source function library.
. /etc/rc.d/init.d/functions
RETVAL=0
# See how we were called.
case "$1" in
start)
echo -n "Starting mcserv services: "
daemon /usr/bin/mcserv -d
RETVAL=$?
touch /var/lock/subsys/mcserv
echo
;;
@ -36,6 +39,7 @@ case "$1" in
stop)
echo -n "Shutting down mcserv services: "
killproc mcserv
RETVAL=$?
rm -f /var/lock/subsys/mcserv
echo
;;
@ -44,5 +48,5 @@ case "$1" in
exit 1
esac
exit 0
exit $RETVAL