Coder Social home page Coder Social logo

Comments (6)

stgraber avatar stgraber commented on August 25, 2024

ctrl+c shouldn't kill the containers. There needs to be a way (probably a signal) to tell to lxd to do a clean shutdown and that'll be used by the init script on host shutdown, but for the common case, lxd exitting during normal operation must keep the containers running so that on crash/failure, it gets respawned and can keep things running.

Remember that the main usage scenario for lxd is a compute node, on those, you don't want your containers to die unless they absolutely have to. For someone experimenting or developing lxd, they will have to stop their containers themselves or if using a distro package, removing the package will also cause a clean shutdown.

So as a conclusion, ctrl+c must be allowed and must have lxd exit immediately without doing anything to the running containers. When restarted, lxd should just pick things were they were left off.

from lxd.

tych0 avatar tych0 commented on August 25, 2024

For the record: I disagree that ^C shouldn't kill the containers.

from lxd.

kapilt avatar kapilt commented on August 25, 2024

fwiw, typically behavior in app container tools is to associate a restart
policy to the container which determines behavior also for exit of app
container and daemon restarts.

-k

On Wed, Dec 10, 2014 at 10:46 AM, Tycho Andersen [email protected]
wrote:

For the record: I disagree that ^C shouldn't kill the containers.


Reply to this email directly or view it on GitHub
lxc/incus#122 (comment).

from lxd.

tych0 avatar tych0 commented on August 25, 2024

That policy is per-container or per-daemon? We'd talked about having a daemon-wide option, at least.

from lxd.

hallyn avatar hallyn commented on August 25, 2024

Hi, just to be clear, are you running with ppa:ubuntu-lxc/daily? Because the ctrl-c bug should have been fixed not too long ago, when I originally found it while working on the flex attach method.

from lxd.

tych0 avatar tych0 commented on August 25, 2024

On Tue, Jan 06, 2015 at 08:12:02AM -0800, hallyn wrote:

Hi, just to be clear, are you running with ppa:ubuntu-lxc/daily? Because the ctrl-c bug should have been fixed not too long ago, when I originally found it while working on the flex attach method.

I've seen this with the trunk at least as of last month when I paused
lxd development. ^C works in some cases, but not others (but whether
or not it worked didn't have anything to do with attach, I didn't
think). Unfortunately I just fiddled around with it and I can't seem
to reproduce it. We can close this for now and I can re-open when I
see the behavior again with steps to reproduce.


Reply to this email directly or view it on GitHub:
lxc/incus#122 (comment)

from lxd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.