directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamshid Afshar (JIRA)" <>
Subject [jira] [Created] (DIRSERVER-1996) Make "apacheds console" ignore stale pidfile
Date Thu, 28 Aug 2014 05:21:57 GMT
Jamshid Afshar created DIRSERVER-1996:

             Summary: Make "apacheds console" ignore stale pidfile
                 Key: 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:

--- 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" ]
         # The string passed to eval must handles spaces in paths correctly.

This message was sent by Atlassian JIRA

View raw message