Merge lp:~mterry/snappy/systemd-restart into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Michael Terry on 2015-06-09 | ||||
| Approved revision: | 487 | ||||
| Merged at revision: | 492 | ||||
| Proposed branch: | lp:~mterry/snappy/systemd-restart | ||||
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github | ||||
| Diff against target: |
35 lines (+3/-0) 3 files modified
snappy/click_test.go (+1/-0) systemd/systemd.go (+1/-0) systemd/systemd_test.go (+1/-0) |
||||
| To merge this branch: | bzr merge lp:~mterry/snappy/systemd-restart | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pitt (community) | 2015-06-05 | Approve on 2015-06-09 | |
| Michael Vogt | 2015-06-05 | Approve on 2015-06-08 | |
|
Review via email:
|
|||
Commit Message
Set all app services to restart on failure.
Description of the Change
Set all app services to restart on failure.
See http://
There was talk on the snappy-app-devel mailing list about not using this key for dbus-activated services. But we don't support those right now.
(We do use the Type=dbus property, but that doesn't mean it's an dbus-activated service -- for that, we'd need to drop the [Install] section and add SystemdService= to the dbus service file. I believe... I'm not an expert with systemd.)
| Martin Pitt (pitti) wrote : | # |
LGTM.
For D-Bus services, these indeed don't have an [Install], but Type=dbus and BusName=org.bla.foo instead. For those we indeed shouldn't have a Restart=, but having it is not the end of the world (mostly just an optimization problem).


Thanks a bunch! This looks good.