From 4a50b110f0f942ce736d674de1c664c4d0dd3314 Mon Sep 17 00:00:00 2001 From: janw Date: Thu, 3 Jul 2008 10:44:24 +0000 Subject: [PATCH] ps exits with 1 if no process was found, so invert it. closes #489 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11523 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/debian/gosa-si-common.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-si/debian/gosa-si-common.init b/gosa-si/debian/gosa-si-common.init index cdcc9a3c2..e9dfd2e95 100755 --- a/gosa-si/debian/gosa-si-common.init +++ b/gosa-si/debian/gosa-si-common.init @@ -34,14 +34,14 @@ start_server() { stop_client() { start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/gosa-si-client.pid --name gosa-si-client kill `ps -C gosa-si-client -o pid=` > /dev/null 2>&1 - ps -C gosa-si-client -o pid= > /dev/null 2>&1 + ! ps -C gosa-si-client -o pid= > /dev/null 2>&1 } stop_server() { start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/gosa-si-server.pid --name gosa-si-server kill `ps -C gosa-si-server -o pid=` > /dev/null 2>&1 - ps -C gosa-si-server -o pid= > /dev/null 2>&1 + ! ps -C gosa-si-server -o pid= > /dev/null 2>&1 } -- 2.30.2