You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Jamshid Afshar (JIRA)" <ji...@apache.org> on 2014/08/28 07:21:57 UTC

[jira] [Created] (DIRSERVER-1996) Make "apacheds console" ignore stale pidfile

Jamshid Afshar created DIRSERVER-1996:
-----------------------------------------

             Summary: Make "apacheds console" ignore stale pidfile
                 Key: DIRSERVER-1996
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1996
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 2.0.0-M17
         Environment: docker centos 6
            Reporter: Jamshid Afshar


Please make the bin/apacheds service script ignore the pid file when using the "console" command. I run it in the foreground in a "docker" container with {noformat}/opt/apacheds-APACHEDS_DIR_VERSION/bin/apacheds console default{noformat} (not as a regular service) but it often won't start because the pid was not cleaned up from a previous run.

For now I apply this patch in my Dockerfile:

{noformat}
--- bin/apacheds.orig	2014-08-24 10:23:41.000000000 +0100
+++ bin/apacheds	2014-08-28 05:56:32.217219720 +0100
@@ -378,7 +378,7 @@
 
 console() {
     echo "Running $APP_LONG_NAME..."
-    getpid
+    #getpid
     if [ "X$pid" = "X" ]
     then
         # The string passed to eval must handles spaces in paths correctly.
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)