packages/utils/byobu/patches/006-only-pgrep-services.patch
Jeffery To 492cbd53cb byobu: Update to 5.129
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-06-15 02:53:59 +08:00

11 lines
253 B
Diff

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