Code

- removed /var/run/gosa-si from debian packaging
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 12:37:55 +0000 (12:37 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 12:37:55 +0000 (12:37 +0000)
- 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

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

index 0cab98e299586ac67238867afdf319b6eccc740f..fd3811b59573e6128c49d1d578893764b2cb91ca 100644 (file)
@@ -1,4 +1,3 @@
 /etc/default
 /usr/share/perl5/GOsaSI
-/var/run/gosa-si
 /var/log/gosa-si
index 69e74e4e93c09bac38da7186c6f08c21c171534e..df16e3f6eabb8302d492f2242763beaf633f7ab0 100755 (executable)
@@ -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