mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/lib/byobu/custom, usr/lib/byobu/release, usr/lib/services
This commit is contained in:
parent
8a0cd025cd
commit
b611e0e6d1
2 changed files with 9 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue