summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3f7f88)
raw | patch | inline | side by side (parent: f3f7f88)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 May 2010 12:37:55 +0000 (12:37 +0000) | ||
committer | opensides <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18514 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/debian/gosa-si-common.dirs | patch | blob | history | |
gosa-si/debian/gosa-si-common.init | patch | blob | history |
index 0cab98e299586ac67238867afdf319b6eccc740f..fd3811b59573e6128c49d1d578893764b2cb91ca 100644 (file)
/etc/default
/usr/share/perl5/GOsaSI
-/var/run/gosa-si
/var/log/gosa-si
index 69e74e4e93c09bac38da7186c6f08c21c171534e..df16e3f6eabb8302d492f2242763beaf633f7ab0 100755 (executable)
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"
# 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