From b611e0e6d1d31a2b42073ecc4d26f62c74e698f1 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Wed, 16 Jun 2010 23:40:33 -0500 Subject: [PATCH] usr/lib/byobu/custom, usr/lib/byobu/release, usr/lib/services --- debian/changelog | 2 +- usr/lib/byobu/services | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index b7e92014..a0eafa8f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,7 @@ byobu (2.81) unreleased; urgency=low Save a fork: - * usr/lib/byobu/custom, usr/lib/byobu/release + * usr/lib/byobu/custom, usr/lib/byobu/release, usr/lib/services -- Dustin Kirkland Wed, 16 Jun 2010 12:46:29 -0500 diff --git a/usr/lib/byobu/services b/usr/lib/byobu/services index fb805680..2498d789 100755 --- a/usr/lib/byobu/services +++ b/usr/lib/byobu/services @@ -34,7 +34,14 @@ fi running() { if [ -f "/etc/init/$1.conf" ]; then # Use upstart - status $1 2>/dev/null | grep -qs running && true + case "$(status $1 2>/dev/null)" in + *running*) + true + ;; + *) + false + ;; + esac elif [ -f "/etc/init.d/$1" ]; then # Fall back to sysvinit /etc/init.d/$1 status >/dev/null 2>&1