mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Fix spurious output in rcons on uninstalled console
alternative.
This commit is contained in:
		| @@ -73,7 +73,7 @@ fi | ||||
|  | ||||
| if [ $USE_CONFLUENT == "1" ] && ([ -x "/opt/confluent/bin/confetty" ] || [ -x "/usr/bin/confetty" ] || [ -x "/usr/local/bin/confetty" ]); then | ||||
|     # use confluent, make sure conserver is not also running | ||||
|     CONSERVER_RC=`service conserver status >> /dev/null; echo $?` | ||||
|     CONSERVER_RC=`service conserver status >& /dev/null; echo $?` | ||||
|     if [[ ${CONSERVER_RC} == 0 ]]; then  | ||||
|         echo "Error: consoleservice is set to 'confluent' but conserver is running.  Stop conserver, run makeconfluentcfg, and retry..." | ||||
|         exit 1 | ||||
| @@ -107,7 +107,7 @@ elif [ -f "/usr/bin/console" ] || [ -f "/bin/console" ]; then | ||||
|     # use conserver | ||||
|     # make sure confluent is not also running, only if confluent is installed | ||||
|     if [[ -f "/etc/init.d/confluent" ]]; then  | ||||
|         CONFLUENT_RC=`service confluent status >> /dev/null; echo $?` | ||||
|         CONFLUENT_RC=`service confluent status >& /dev/null; echo $?` | ||||
|         if [[ ${CONFLUENT_RC} == 0 ]]; then  | ||||
|             echo "Error: consoleservice is set to 'conserver' but confluent is running.  Stop confluent, run makeconservercf, and retry..." | ||||
|             exit 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user