Merge ~andreserl/maas:1.9_lp1732703 into maas:1.9
Proposed by
Andres Rodriguez
Status: | Rejected |
---|---|
Rejected by: | Blake Rouse |
Proposed branch: | ~andreserl/maas:1.9_lp1732703 |
Merge into: | maas:1.9 |
Diff against target: |
22 lines (+5/-7) 1 file modified
src/provisioningserver/utils/__init__.py (+5/-7) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Approve | ||
MAAS Lander | Needs Fixing | ||
Review via email: mp+334930@code.launchpad.net |
Commit message
LP: #1732703 - Correctly detect upstart when systemd is installed but not used.
To post a comment you must log in.
Where are the unit tests for this change?
That said, this code should work. But I kind of liked Alberto's suggestion (can't remember where he posted it, maybe IRC):
# readlink /proc/1/exe systemd/ systemd
/lib/
That is, we could check the running PID 1 itself to see if 'systemd' is in the name.
Either way, I think if MAAS is running in Docker, all bets are off. ;-)