Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/282358

Change subject: hhvm: hhvm-dump-debug compatibility with jessie
......................................................................

hhvm: hhvm-dump-debug compatibility with jessie

Change-Id: I14ab7dbaf5b9624f25a10d2032336ddac184be19
---
M modules/hhvm/files/debug/hhvm-dump-debug
1 file changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/58/282358/1

diff --git a/modules/hhvm/files/debug/hhvm-dump-debug 
b/modules/hhvm/files/debug/hhvm-dump-debug
index e628e23..b21d6e5 100755
--- a/modules/hhvm/files/debug/hhvm-dump-debug
+++ b/modules/hhvm/files/debug/hhvm-dump-debug
@@ -8,8 +8,13 @@
 
 . /etc/default/hhvm || die
 
-read PID <"${HHVM_RUN_DIR:-/run/hhvm}/hhvm.pid"
-case $PID in ''|*[!0-9]*)
+if [ -x /bin/systemctl ]; then
+    PID=$(/bin/systemctl show -p MainPID hhvm.service | cut -d= -f2)
+else
+    read PID <"${HHVM_RUN_DIR:-/run/hhvm}/hhvm.pid"
+fi;
+
+case $PID in 0|''|*[!0-9]*)
     die "Can't find PID file of HHVM." ;;
 esac
 

-- 
To view, visit https://gerrit.wikimedia.org/r/282358
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14ab7dbaf5b9624f25a10d2032336ddac184be19
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to