Merge lp:~jamesodhunt/upstart/bug-881885 into lp:upstart
Proposed by
James Hunt
Status: | Merged |
---|---|
Merged at revision: | 1429 |
Proposed branch: | lp:~jamesodhunt/upstart/bug-881885 |
Merge into: | lp:upstart |
Diff against target: |
77 lines (+30/-1) (has conflicts) 2 files modified
ChangeLog (+11/-0) scripts/init-checkconf.sh (+19/-1) Text conflict in ChangeLog |
To merge this branch: | bzr merge lp:~jamesodhunt/upstart/bug-881885 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Upstart Reviewers | Pending | ||
Review via email: mp+142540@code.launchpad.net |
Description of the change
* scripts/
- Check copy is successful.
- Auto-start dbus-launch if not running and command is available (for
example in non-desktop environments) (LP: #881885).
- Auto-stop dbus-daemon if we started it.
To post a comment you must log in.
I know this is a bash script, but even in bash scripts I would prefer that we always used the form "[ test ] && [ test ]" rather than "[ test -a test ]"; it's more portable in case somebody wants to convert it to portable /bin/sh later, and the parsing rules are so much clearer.
I'd suggest a slightly simpler approach rather than having to manually kill dbus-launch: move the dbus-launch call as far up the script as is practical, and have the script re-exec itself under dbus-launch (i.e. 'exec dbus-launch "$0" "$@"' or similar). dbus-launch will then automatically exit when the script finishes, and the net result should be much less code.