You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2008/04/07 13:48:41 UTC
svn commit: r645468 - in
/directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers:
bin/apacheds-init deb/apacheds-init
Author: pamarcelot
Date: Mon Apr 7 04:48:40 2008
New Revision: 645468
URL: http://svn.apache.org/viewvc?rev=645468&view=rev
Log:
Fixed a bug in the init script when using the server on a Debian machine. /var/run is mounted as a tmpfs, so the apacheds-1.5.2-SNAPSHOT in it is dropped when the machine reboots. Added some testing code on the PIDDIR to make sure it exists.
Modified:
directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/bin/apacheds-init
directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/apacheds-init
Modified: directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/bin/apacheds-init
URL: http://svn.apache.org/viewvc/directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/bin/apacheds-init?rev=645468&r1=645467&r2=645468&view=diff
==============================================================================
--- directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/bin/apacheds-init (original)
+++ directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/bin/apacheds-init Mon Apr 7 04:48:40 2008
@@ -404,6 +404,16 @@
fi
}
+testpiddir()
+{
+ # Be sure that the PIDDIR exists
+ if [ ! -d $PIDDIR ]
+ then
+ # If it doesn't exist, we create it
+ mkdir -p $PIDDIR
+ fi
+}
+
usage() {
echo "Usage: $0 <command>"
echo " Available Commands: "
@@ -419,6 +429,7 @@
console() {
echo "Running $APP_LONG_NAME..."
+ testpiddir
getpid
if [ "X$pid" = "X" ]
then
@@ -433,6 +444,7 @@
start() {
echo "Starting $APP_LONG_NAME..."
+ testpiddir
getpid
if [ "X$pid" = "X" ]
then
Modified: directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/apacheds-init
URL: http://svn.apache.org/viewvc/directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/apacheds-init?rev=645468&r1=645467&r2=645468&view=diff
==============================================================================
--- directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/apacheds-init (original)
+++ directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers/deb/apacheds-init Mon Apr 7 04:48:40 2008
@@ -404,6 +404,16 @@
fi
}
+testpiddir()
+{
+ # Be sure that the PIDDIR exists
+ if [ ! -d $PIDDIR ]
+ then
+ # If it doesn't exist, we create it
+ mkdir -p $PIDDIR
+ fi
+}
+
usage() {
echo "Usage: $0 <command>"
echo " Available Commands: "
@@ -419,6 +429,7 @@
console() {
echo "Running $APP_LONG_NAME..."
+ testpiddir
getpid
if [ "X$pid" = "X" ]
then
@@ -433,6 +444,7 @@
start() {
echo "Starting $APP_LONG_NAME..."
+ testpiddir
getpid
if [ "X$pid" = "X" ]
then