mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-24 18:40:05 +00:00
-Improved cosmetic enhancements for conserver init script
This commit is contained in:
parent
af9802cafb
commit
439a141d90
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user