2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-21 17:11:45 +00:00

-Improved cosmetic enhancements for conserver init script

This commit is contained in:
jbjohnso 2008-06-26 15:05:17 +00:00
parent af9802cafb
commit 439a141d90

View File

@ -1,6 +1,6 @@
diff -urN conserver-8.1.16/contrib/redhat-rpm/conserver.init conserver-8.1.16-diffinit/contrib/redhat-rpm/conserver.init
--- conserver-8.1.16/contrib/redhat-rpm/conserver.init 2003-02-27 21:06:50.000000000 -0500
+++ conserver-8.1.16-diffinit/contrib/redhat-rpm/conserver.init 2008-06-26 10:59:51.000000000 -0400
+++ conserver-8.1.16-diffinit/contrib/redhat-rpm/conserver.init 2008-06-26 11:04:32.000000000 -0400
@@ -6,15 +6,48 @@
# description: conserver is a serial-port console daemon
# config: /etc/conserver.cf
@ -57,7 +57,7 @@ diff -urN conserver-8.1.16/contrib/redhat-rpm/conserver.init conserver-8.1.16-di
# make sure conserver is installed and executable
[ -x /usr/sbin/conserver ] || exit 1
@@ -24,22 +57,49 @@
@@ -24,22 +57,46 @@
case "$1" in
start)
echo -n "Starting conserver: "
@ -72,7 +72,6 @@ diff -urN conserver-8.1.16/contrib/redhat-rpm/conserver.init conserver-8.1.16-di
+ exit 1
+ fi
+ $SUCCESS
+ echo
;;
stop)
+ $STATUS conserver >& /dev/null
@ -89,11 +88,9 @@ diff -urN conserver-8.1.16/contrib/redhat-rpm/conserver.init conserver-8.1.16-di
+ $STATUS conserver >& /dev/null
+ if [ "$?" == "0" ]; then
+ $FAILURE
+ echo
+ exit 1
+ fi
+ $SUCCESS
+ echo
;;
status)
- status conserver