ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Hill (JIRA)" <>
Subject [jira] [Created] (AMBARI-12238) ambari-server stop kills parent process
Date Wed, 01 Jul 2015 15:19:04 GMT
Greg Hill created AMBARI-12238:

             Summary: ambari-server stop kills parent process
                 Key: AMBARI-12238
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.0.1, 2.1.0
            Reporter: Greg Hill

When you do ambari-server stop inside a script, it kills the calling script as well.  This
is because ambari-server stop kills the entire process group, but ambari-server start does
not detach itself from the parent process.

'stop' kills the whole process group:

'start' does not detach from its parent:

If you add an os.setsid() call to the start process, I think that would fix the bug, but more
research/testing is needed:

This message was sent by Atlassian JIRA

View raw message