directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r645501 - in /directory/daemon/branches/bigbang/plugin/src/main/resources/org/apache/directory/daemon/installers: bin/apacheds-init deb/apacheds-init
Date Mon, 07 Apr 2008 13:17:20 GMT
Author: pamarcelot
Date: Mon Apr  7 06:17:18 2008
New Revision: 645501

URL: http://svn.apache.org/viewvc?rev=645501&view=rev
Log:
Modified the script to create the PIDDIR as root and then chown it to the user apacheds.

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=645501&r1=645500&r2=645501&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 06:17:18 2008
@@ -411,6 +411,7 @@
 	then
 		# If it doesn't exist, we create it
    		mkdir -p $PIDDIR
+   		chown apacheds:apacheds $PIDDIR
 	fi
 }
 
@@ -429,7 +430,6 @@
 
 console() {
     echo "Running $APP_LONG_NAME..."
-    testpiddir
     getpid
     if [ "X$pid" = "X" ]
     then
@@ -444,7 +444,6 @@
  
 start() {
     echo "Starting $APP_LONG_NAME..."
-    testpiddir
     getpid
      if [ "X$pid" = "X" ]
      then
@@ -563,11 +562,13 @@
 case "$1" in
 
     'console')
+    	testpiddir
         checkUser touchlock $1 $INSTANCE
         console
         ;;
 
     'start')
+    	testpiddir
         checkUser touchlock $1 $INSTANCE
         start
         ;;

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=645501&r1=645500&r2=645501&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 06:17:18 2008
@@ -411,6 +411,7 @@
 	then
 		# If it doesn't exist, we create it
    		mkdir -p $PIDDIR
+   		chown apacheds:apacheds $PIDDIR
 	fi
 }
 
@@ -429,7 +430,6 @@
 
 console() {
     echo "Running $APP_LONG_NAME..."
-    testpiddir
     getpid
     if [ "X$pid" = "X" ]
     then
@@ -444,7 +444,6 @@
  
 start() {
     echo "Starting $APP_LONG_NAME..."
-    testpiddir
     getpid
      if [ "X$pid" = "X" ]
      then
@@ -563,11 +562,13 @@
 case "$1" in
 
     'console')
+    	testpiddir
         checkUser touchlock $1 $INSTANCE
         console
         ;;
 
     'start')
+    	testpiddir
         checkUser touchlock $1 $INSTANCE
         start
         ;;



Mime
View raw message