You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2013/01/23 23:53:06 UTC

git commit: BIGTOP-829: Hue status returned wrong information on SLES

Updated Branches:
  refs/heads/master 79808f903 -> 896a7fa47


BIGTOP-829: Hue status returned wrong information on SLES


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/896a7fa4
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/896a7fa4
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/896a7fa4

Branch: refs/heads/master
Commit: 896a7fa47f8593eaad0194f168d34c05f1479700
Parents: 79808f9
Author: Mark Grover <gr...@gmail.com>
Authored: Wed Jan 23 14:40:29 2013 -0800
Committer: Roman Shaposhnik <rv...@cloudera.com>
Committed: Wed Jan 23 14:52:25 2013 -0800

----------------------------------------------------------------------
 bigtop-packages/src/rpm/hue/SOURCES/hue.init.suse |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/896a7fa4/bigtop-packages/src/rpm/hue/SOURCES/hue.init.suse
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/rpm/hue/SOURCES/hue.init.suse b/bigtop-packages/src/rpm/hue/SOURCES/hue.init.suse
index 446e969..8ef67e0 100644
--- a/bigtop-packages/src/rpm/hue/SOURCES/hue.init.suse
+++ b/bigtop-packages/src/rpm/hue/SOURCES/hue.init.suse
@@ -19,7 +19,7 @@
 #
 # chkconfig: 345 90 10
 # description: Hue web server
-# pidfile: /usr/lib/hue/pids/supervisor.pid
+# pidfile: /var/run/hue/supervisor.pid
 #
 ### BEGIN INIT INFO
 # Provides:          hue_webserver
@@ -103,7 +103,10 @@ hue_restart() {
 
 
 checkstatus(){
-  pidofproc -p $PIDFILE $DAEMON > /dev/null
+  # -L flag to follow symlinks is not in LSB spec and is distro specific
+  # It exists in SLES and therefore ok to be used here. It may or may not
+  # exist in other distros
+  pidofproc -L -p $PIDFILE python > /dev/null
   status=$?
 
   case "$status" in