Code

ps exits with 1 if no process was found, so invert it.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Jul 2008 10:44:24 +0000 (10:44 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Jul 2008 10:44:24 +0000 (10:44 +0000)
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

index cdcc9a3c200dfd1b658d98c9447b5b797b5cb0c0..e9dfd2e9549bd96bc8ce8c72f80b56f33c004f8f 100755 (executable)
@@ -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
 }