index e71bf121df04b268fd33918719abdedf66c426f8..6cde8872554c51fa1fb9dd828f3db24f4b0a9348 100755 (executable)
-#!/bin/sh
+#!/bin/bash
# Start/stop the GOsa support daemon infrastructure.
#
### BEGIN INIT INFO
# Load defaults
START_BUS=0
+DEBUG=-vvv
[ -r /etc/default/gosa-si ] && . /etc/default/gosa-si
# Load LSB support functions
start_client() {
- start-stop-daemon --start --quiet --pidfile /var/run/gosa-si-client.pid --name gosa-si-client --startas /usr/sbin/gosa-si-client
+ start-stop-daemon --start --quiet --pidfile /var/run/gosa-si-client.pid --name gosa-si-client --startas /usr/sbin/gosa-si-client -- $DEBUG
}
start_bus() {
- start-stop-daemon --start --quiet --pidfile /var/run/gosa-si-bus.pid --name gosa-si-bus --startas /usr/sbin/gosa-si-bus
+ start-stop-daemon --start --quiet --pidfile /var/run/gosa-si-bus.pid --name gosa-si-bus --startas /usr/sbin/gosa-si-bus -- $DEBUG
}
start_server() {
- start-stop-daemon --start --quiet --pidfile /var/run/gosa-si-server.pid --name gosa-si-server --startas /usr/sbin/gosa-si-server -- $1
+ start-stop-daemon --start --quiet --pidfile /var/run/gosa-si-server.pid --name gosa-si-server --startas /usr/sbin/gosa-si-server -- $1 $DEBUG
}
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
}
stop_bus() {
start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/gosa-si-bus.pid --name gosa-si-bus
+ kill `ps -C gosa-si-bus -o pid=` &> /dev/null
}
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
}