Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleet synchronously stops units during init #624

Closed
bcwaldon opened this issue Jul 8, 2014 · 0 comments · Fixed by #630
Closed

fleet synchronously stops units during init #624

bcwaldon opened this issue Jul 8, 2014 · 0 comments · Fixed by #630
Assignees
Milestone

Comments

@bcwaldon
Copy link
Contributor

bcwaldon commented Jul 8, 2014

  1. start a fleet unit with a long-running ExecStop command (maybe /bin/sleep 60s)
  2. kill fleet in such a way that it does not have a chance to gracefully shut down
  3. start fleet
  4. fleet will wait for the long-running ExecStop command to finish before moving on to normal operation

I expect fleet to trigger all of the systemd jobs to get the machine's state back to the intended state tracked in the registry. It does this, but it is doing so synchronously [0]. If your units take a long time to shut down, this will block fleet from joining the cluster.

[0]

a.um.Stop(name)

@bcwaldon bcwaldon added this to the v0.5.3 milestone Jul 8, 2014
@bcwaldon bcwaldon self-assigned this Jul 8, 2014
bcwaldon added a commit to bcwaldon/fleet that referenced this issue Jul 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant