Merge lp:~axwalk/juju-core/local-pkill-qualified-path into lp:~go-bot/juju-core/trunk
Proposed by
Andrew Wilkins
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2325 |
Proposed branch: | lp:~axwalk/juju-core/local-pkill-qualified-path |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
20 lines (+2/-1) 1 file modified
provider/local/environ.go (+2/-1) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/local-pkill-qualified-path |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+205717@code.launchpad.net |
Commit message
provider/local: qualify pkill jujud with home dir
When local was changed to use common code for
bootstrap and destroy, destroy regressed and
would destroy any jujud running on the machine.
This CL fixes it by only killing the jujud that
is located in the environment's data-dir.
Description of the change
provider/local: qualify pkill jujud with home dir
When local was changed to use common code for
bootstrap and destroy, destroy regressed and
would destroy any jujud running on the machine.
This CL fixes it by only killing the jujud that
is located in the environment's data-dir.
To post a comment you must log in.
Reviewers: mp+205717_ code.launchpad. net,
Message:
Please take a look.
Description:
provider/local: qualify pkill jujud with home dir
When local was changed to use common code for
bootstrap and destroy, destroy regressed and
would destroy any jujud running on the machine.
This CL fixes it by only killing the jujud that
is located in the environment's data-dir.
https:/ /code.launchpad .net/~axwalk/ juju-core/ local-pkill- qualified- path/+merge/ 205717
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/61820043/
Affected files (+4, -1 lines): local/environ. go
A [revision details]
M provider/
Index: [revision details] 20140211064343- d5yn0b3om93nuec j
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: provider/ local/environ. go local/environ. go' local/environ. go 2014-02-05 08:01:22 +0000 local/environ. go 2014-02-11 09:05:00 +0000
=== modified file 'provider/
--- provider/
+++ provider/
@@ -9,6 +9,7 @@
"os"
"os/exec"
"path/filepath"
+ "regexp"
"strings"
"sync"
@@ -434,7 +435,7 @@ Sprintf( "-%d", terminationwork er.TerminationS ignal), Join(regexp. QuoteMeta( env.config. rootDir( )), ".*", "jujud"),
cmd := exec.Command(
"pkill",
fmt.
- "jujud",
+ "-f",
filepath.
)
return cmd.Run()
}