Merge lp:~thumper/juju-core/system-upstart into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1907 |
Proposed branch: | lp:~thumper/juju-core/system-upstart |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
35 lines (+5/-2) 2 files modified
upstart/upstart.go (+2/-2) upstart/upstart_test.go (+3/-0) |
To merge this branch: | bzr merge lp:~thumper/juju-core/system-upstart |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+188247@code.launchpad.net |
Commit message
Explicitly specify the system bus for upstart.
With newer upstarts, calling 'sudo -E' to start the
local provider caused juju to not find the correct
upstart script to start.
Description of the change
Explicitly specify the system bus for upstart.
With newer upstarts, calling 'sudo -E' to start the
local provider caused juju to not find the correct
upstart script to start.
To post a comment you must log in.
Reviewers: mp+188247_ code.launchpad. net,
Message:
Please take a look.
Description:
Explicitly specify the system bus for upstart.
With newer upstarts, calling 'sudo -E' to start the
local provider caused juju to not find the correct
upstart script to start.
https:/ /code.launchpad .net/~thumper/ juju-core/ system- upstart/ +merge/ 188247
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/14114043/
Affected files (+4, -2 lines):
A [revision details]
M upstart/upstart.go
Index: [revision details] 20130927195254- bamcrcscoqtu0wl e
=== 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: upstart/upstart.go upstart. go'
=== modified file 'upstart/
--- upstart/upstart.go 2013-08-29 03:58:19 +0000
+++ upstart/upstart.go 2013-09-29 23:03:55 +0000
@@ -54,7 +54,7 @@
if s.Running() {
return nil
}
- return runCommand("start", s.Name)
+ return runCommand("start", "--system", s.Name)
}
func runCommand(args ...string) error {
@@ -74,7 +74,7 @@
if !s.Running() {
return nil
}
- return runCommand("stop", s.Name)
+ return runCommand("stop", "--system", s.Name)
}
// StopAndRemove stops the service and then deletes the service