From: janw Date: Thu, 3 Jul 2008 10:44:24 +0000 (+0000) Subject: ps exits with 1 if no process was found, so invert it. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4a50b110f0f942ce736d674de1c664c4d0dd3314;p=gosa.git 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 --- 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 }