Merge lp:~allenap/maas/dev-services-shutdown into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1419 |
Proposed branch: | lp:~allenap/maas/dev-services-shutdown |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
30 lines (+5/-4) 2 files modified
services/cluster-worker/run (+1/-1) services/region-worker/run (+4/-3) |
To merge this branch: | bzr merge lp:~allenap/maas/dev-services-shutdown |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+141645@code.launchpad.net |
Commit message
Use pgrphack to ensure that the celeryd development services shut down correctly.
Previously the region-worker service would leave processes behind, and the cluster-worker service would hang if not started via fghack.
To post a comment you must log in.
On IRC:
> <rvba> ... I'm still having an error when I try to start the services login/? next=%2F HTTP/1.1" 200 53437 ~/canonical/ dev-services- shutdown$ make run maas.dev. web: temporary failure
> again (after they have been stopped):
>
> {{{
> ==> logs/webapp/current <==
> [02/Jan/2013 18:28:36] "GET /accounts/
> ^C--> Stop `web`
> --> Stop `region-worker`
> --> Stop `database`
> --> Stop `txlongpoll`
> --> Stop `pserv`
> --> Stop `dns`
> --> Stop `webapp`
> --> Stop `reloader`
> --> Stop `cluster-worker`
>
> rvb@leaf:
> --> Start `web`
> setlock: fatal: unable to lock /run/lock/
> }}}
>
> …Am I missing something?
This means that either a supervise process (started by `make <name>/ @supervise` or something that depends on that) is <name>/ @run`).
services/
still running, or the service is running somewhere else, even in
another branch (possibly invoked by `make services/
Try `fuser -v /run/lock/ maas.dev. web` to see which process is still
holding that lock.