Merge lp:~james-page/charm-helpers/fixup-service-running into lp:charm-helpers
Proposed by
James Page
on 2016-05-17
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | 574 | ||||
| Proposed branch: | lp:~james-page/charm-helpers/fixup-service-running | ||||
| Merge into: | lp:charm-helpers | ||||
| Diff against target: |
364 lines (+78/-94) 2 files modified
charmhelpers/core/host.py (+16/-23) tests/core/test_host.py (+62/-71) |
||||
| To merge this branch: | bzr merge lp:~james-page/charm-helpers/fixup-service-running | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ryan Beisner | 2016-05-17 | Approve on 2016-05-18 | |
| Edward Hope-Morley | Approve on 2016-05-18 | ||
|
Review via email:
|
|||
Commit Message
Refactor service_running to determine init approach
Use of "service --status-all" has some challenges on trusty where
a recent lsb-base update resulted in all calls being diverted to
upstart, where return codes for non-running daemons are still 0.
Detect whether to use upstart or the base init.d script to
determine whether a service is running, and look at either the
upstart output, or for a non-zero return code from an init.d
status call.
To post a comment you must log in.
lp:~james-page/charm-helpers/fixup-service-running
updated
on 2016-05-17
- 574. By James Page on 2016-05-17
-
Avoid conditional for sysv init check
| James Page (james-page) wrote : | # |
Test sync: https:/
review:
Approve
review:
Approve


I'm syncing this into a few charms @master and stable/16.04 to exercise. Will report back here.