You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
253 B

  1. --- a/usr/lib/byobu/services
  2. +++ b/usr/lib/byobu/services
  3. @@ -24,6 +24,8 @@ __services_detail() {
  4. }
  5. service_running() {
  6. + pgrep "$1" >/dev/null
  7. + return $?
  8. if [ -f "/etc/init/$1.conf" ]; then
  9. # Use upstart
  10. case "$(status $1 2>/dev/null)" in