Giter Site home page Giter Site logo

Ctrl-C does not cleanly unmount about s3ql HOT 4 CLOSED

s3ql avatar s3ql commented on July 17, 2024
Ctrl-C does not cleanly unmount

from s3ql.

Comments (4)

Nikratio avatar Nikratio commented on July 17, 2024

Thanks for the report! It is not clear to me that this is a bug rather than intended behavior. If Ctrl-C is indistinguishable from unmounting the file system (as it was in 2.31 and earlier), you could always just unmount the filesystem rather than pressing Ctrl-C. In 2.32 and newer, Ctrl-C results in the filesystem terminating as quickly as possible without data-loss (assuming that the local cache is kept).

Do you have a use case where you depend on Ctrl-C having the same semantics as unmounting?

from s3ql.

Salokyn avatar Salokyn commented on July 17, 2024

Hi,
This is because I try to run s3ql in a docker container. So it must run in forground and must be unmounted cleanly when the container is stopped (when it is stopped, docker send a SIGTERM signal to the process running in the container).
When mount.s3ql --fg receives a SIGTERM or SIGHUP, it should cleanly unmount (whatever the time needed) and exit. This works fine in version 2.21 but crashes with v2.32.
Here is my project : https://gitlab.com/Salokyn/docker-s3ql

from s3ql.

Nikratio avatar Nikratio commented on July 17, 2024

Thanks for the additional details! However, it is still not clear to me why you can't trigger a regular unmount before stopping the container, or as part of the container stopping procedure. Having a way to shutdown S3QL as quickly as possible without loosing data is a valuable feature, so I'm really not found of the idea of dropping this in favor of making SIGTERM/SIGHUP an alias for unmount.

from s3ql.

Nikratio avatar Nikratio commented on July 17, 2024

I'm closing this bug report for now. Please feel free to re-open this if you can provide the requested information!

from s3ql.

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.