usr/lib/byobu/custom, usr/lib/byobu/release, usr/lib/services

This commit is contained in:
Dustin Kirkland 2010-06-16 23:40:33 -05:00
commit b611e0e6d1
2 changed files with 9 additions and 2 deletions

2
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Wed, 16 Jun 2010 12:46:29 -0500

View file

@ -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