From: opensides Date: Mon, 17 May 2010 12:37:55 +0000 (+0000) Subject: - removed /var/run/gosa-si from debian packaging X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a3081f273091d1d20996e3d862747f88efb37acd;p=gosa.git - removed /var/run/gosa-si from debian packaging - added creation of /var/run/gosa-si in init script git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18514 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/debian/gosa-si-common.dirs b/gosa-si/debian/gosa-si-common.dirs index 0cab98e29..fd3811b59 100644 --- a/gosa-si/debian/gosa-si-common.dirs +++ b/gosa-si/debian/gosa-si-common.dirs @@ -1,4 +1,3 @@ /etc/default /usr/share/perl5/GOsaSI -/var/run/gosa-si /var/log/gosa-si diff --git a/gosa-si/debian/gosa-si-common.init b/gosa-si/debian/gosa-si-common.init index 69e74e4e9..df16e3f6e 100755 --- a/gosa-si/debian/gosa-si-common.init +++ b/gosa-si/debian/gosa-si-common.init @@ -18,8 +18,9 @@ SERVER="gosa-si-server" CLIENT="gosa-si-client" DAEMON_SERVER="/usr/sbin/${SERVER}" DAEMON_CLIENT="/usr/sbin/${CLIENT}" -PIDFILE_SERVER="/var/run/gosa-si/${SERVER}.pid" -PIDFILE_CLIENT="/var/run/gosa-si/${CLIENT}.pid" +RUN_DIRECTORY="/var/run/gosa-si" +PIDFILE_SERVER="$RUN_DIRECTORY/${SERVER}.pid" +PIDFILE_CLIENT="$RUN_DIRECTORY/${CLIENT}.pid" PATH="/sbin:/usr/sbin:/bin:/usr/bin" @@ -29,6 +30,9 @@ PATH="/sbin:/usr/sbin:/bin:/usr/bin" # Load LSB support functions . /lib/lsb/init-functions +if [ ! -d "/var/run/gosa-si" ]; then + mkdir $RUN_DIRECTORY +fi start_client() { start-stop-daemon --start --quiet --pidfile ${PIDFILE_CLIENT} --name ${CLIENT} --startas ${DAEMON_CLIENT} -- $DEBUG