mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-03 06:31:28 +03:00
* lib/mcserv.init: Fix exit status.
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=44601
This commit is contained in:
parent
9696da138d
commit
4ca052e8c7
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user