Merge lp:~jamesodhunt/snappy/systemd-unit-fixes into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Merged |
|---|---|
| Approved by: | Sergio Schvezov on 2015-03-27 |
| 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 | 2015-03-27 | Approve on 2015-03-27 | |
|
Review via email:
|
|||
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.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~jamesodhunt/snappy/systemd-unit-fixes into lp:snappy failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update code.google.
update github.
code.google.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
github.
update launchpad.
gopkg.in/yaml.v2 now at 49c95bdc2184325
7 repositories updated; 1 failed
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
LANG=C
if which goctest >/dev/null; then
goctest=
else
goctest="go test"
fi
echo Checking formatting
fmt=$(gofmt -l .)
if [ -n "$fmt" ]; then
echo "Formatting wrong in following files"
echo $fmt
exit 1
fi
echo Installing godeps
go get launchpad.
export PATH=$PATH:
echo Install golint
go get github.
export PATH=$PATH:
echo Obtaining dependencies
godeps -u dependencies.tsv
godeps: cannot update "/tmp/tmp.
bzr: ERROR: Invalid http response for http://
package launchpad.


Thanks, good catch.
I'm much in favor of using systemd-verify - it seems its systemd-analyize verify nowdays(?)