Code

- Added a command to only restart the gosa-si client (Closes #694)
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Sep 2009 23:28:11 +0000 (23:28 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Sep 2009 23:28:11 +0000 (23:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14219 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/debian/gosa-si-common.init

index 8ce729a385b0b4003efca464db13ebcc9bb3ad1d..2f0dae5708a2e4f62c8bbc3364f7b80bb3ef93e4 100755 (executable)
@@ -81,7 +81,17 @@ reload|force-reload|restart) log_daemon_msg "Restarting GOsa support infrastruct
        log_progress_msg "done"
         log_end_msg $?
         ;;
-*)     log_action_msg "Usage: /etc/init.d/gosa-si {start|stop|restart|reload|force-reload}"
+restart-client) log_daemon_msg "Restarting GOsa support infrastructure client"
+        if [ "$START_CLIENT" = "1" -a -x /usr/sbin/gosa-si-client ]; then
+                stop_client
+        fi
+        if [ "$START_CLIENT" = "1" -a -x /usr/sbin/gosa-si-client ]; then
+                start_client
+        fi
+        log_progress_msg "done"
+        log_end_msg $?
+        ;;
+*)     log_action_msg "Usage: /etc/init.d/gosa-si {start|stop|restart|restart-client|reload|force-reload}"
         exit 2
         ;;
 esac