jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: JENA-1040: Setting up log_* functions
Date Sun, 11 Oct 2015 16:17:20 GMT
Repository: jena
Updated Branches:
  refs/heads/master 54d98cdac -> 2e18b8cdc


JENA-1040: Setting up log_* functions


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/2e18b8cd
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/2e18b8cd
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/2e18b8cd

Branch: refs/heads/master
Commit: 2e18b8cdc19bf2e0af2f3f6bf06ebbd283a5bdab
Parents: 54d98cd
Author: Andy Seaborne <andy@apache.org>
Authored: Sun Oct 11 17:17:03 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sun Oct 11 17:17:03 2015 +0100

----------------------------------------------------------------------
 jena-fuseki2/apache-jena-fuseki/fuseki | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/2e18b8cd/jena-fuseki2/apache-jena-fuseki/fuseki
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/fuseki b/jena-fuseki2/apache-jena-fuseki/fuseki
index 29465f1..bfb79e1 100755
--- a/jena-fuseki2/apache-jena-fuseki/fuseki
+++ b/jena-fuseki2/apache-jena-fuseki/fuseki
@@ -89,23 +89,25 @@ if [ -f /etc/default/$NAME ]; then
   . /etc/default/$NAME
 fi
 
-if [ -f /lib/lsb/init-functions ]; then
-  . /lib/lsb/init-functions
-else
-  # simple replacements for LSB daemon logging functions if not defined
-  log_daemon_msg() {
+# simple replacements for LSB daemon logging functions if not defined
+# Centos 6 has init-functions but not log_daemon_msg/log_begin_msg/log_end_msg
+# Define simple version - attempt to replace with /lib/lsb/init-functions
+log_daemon_msg() {
     echo $1
-  }
-  log_begin_msg() {
+}
+log_begin_msg() {
     echo $1
-  }
-  log_end_msg() {
+}
+log_end_msg() {
     if [ $1 -eq 0 ]; then
-      echo '[OK]'
+	echo '[OK]'
     else
-      echo '[failed]'
+	echo '[failed]'
     fi
-  }
+}
+
+if [ -f /lib/lsb/init-functions ]; then
+    . /lib/lsb/init-functions
 fi
 
 usage()


Mime
View raw message