You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Justin Clift (JIRA)" <ji...@apache.org> on 2011/08/05 09:01:28 UTC

[jira] [Created] (DTACLOUD-63) The /etc/init.d/deltacloud-core script for Fedora/RHEL kills *every* deltacloudd processes when shutting down, rather than just its own

The /etc/init.d/deltacloud-core script for Fedora/RHEL kills *every* deltacloudd processes when shutting down, rather than just its own
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: DTACLOUD-63
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-63
             Project: DeltaCloud
          Issue Type: Bug
         Environment: RHEL 6.1
            Reporter: Justin Clift
            Assignee: David Lutterkort
            Priority: Minor


When shutting down deltacloud-core on a server with several deltacloudd processes (ie Aeolus 0.3.0 release), the deltacloud-core script blindly kills every deltacloud daemon on the server instead of just the deltacloud-core one.

This is because the init.d script is using:

  stop() {
      echo -n $"Shutting down $prog: "
      killproc deltacloudd

Instead of using the PID of the correct process.

Something like this should work, if the start() function is updated to save the pid in PIDFILE:

      killproc -p $PIDFILE deltacloudd


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DTACLOUD-63) The /etc/init.d/deltacloud-core script for Fedora/RHEL kills *every* deltacloudd processes when shutting down, rather than just its own

Posted by "Justin Clift (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Clift updated DTACLOUD-63:
---------------------------------

    Attachment: deltacloud-ec2-us-east-1

Reference working version, from Aeolus 0.3.0, for EC2.

This file looks to have originally been copied from deltacloud-core anyway (as many of the comments still say that), but then modified to save the PID and only shut down the correct one.

Probably fairly simple to get the idea from, etc.

> The /etc/init.d/deltacloud-core script for Fedora/RHEL kills *every* deltacloudd processes when shutting down, rather than just its own
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-63
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-63
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: RHEL 6.1
>            Reporter: Justin Clift
>            Assignee: David Lutterkort
>            Priority: Minor
>         Attachments: deltacloud-ec2-us-east-1
>
>
> When shutting down deltacloud-core on a server with several deltacloudd processes (ie Aeolus 0.3.0 release), the deltacloud-core script blindly kills every deltacloud daemon on the server instead of just the deltacloud-core one.
> This is because the init.d script is using:
>   stop() {
>       echo -n $"Shutting down $prog: "
>       killproc deltacloudd
> Instead of using the PID of the correct process.
> Something like this should work, if the start() function is updated to save the pid in PIDFILE:
>       killproc -p $PIDFILE deltacloudd

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira