Merge lp:~jamesodhunt/snappy/systemd-unit-fixes into lp:~snappy-dev/snappy/snappy-moved-to-github
Proposed by
James Hunt
Status: | Merged |
---|---|
Approved by: | Sergio Schvezov |
Approved revision: | 274 |
Merged at revision: | 274 |
Proposed branch: | lp:~jamesodhunt/snappy/systemd-unit-fixes |
Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
Diff against target: |
38 lines (+13/-7) 1 file modified
snappy/click.go (+13/-7) |
To merge this branch: | bzr merge lp:~jamesodhunt/snappy/systemd-unit-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Approve | ||
Review via email: mp+254434@code.launchpad.net |
Commit message
Use correct systemd unit directive ExecStopPost (instead of ExecPostStop)
Description of the change
The current systemd units that get generated are invalid:
* generateSnapSer
- Fix incorrect unit directive (ExecStopPost=, not ExecPostStop=).
- Specify full paths for ExecStop= and ExecStopPost= to ensure unit is
valid.
Ideally, we should probably check them for validity using systemd-verify. If snappy doesn't do this, we should atleast add a check to lp:snappy/selftest for the installed apps.
To post a comment you must log in.
Thanks, good catch.
I'm much in favor of using systemd-verify - it seems its systemd-analyize verify nowdays(?)