Code Monkey home page Code Monkey logo

Comments (5)

skarnet avatar skarnet commented on August 25, 2024 1

If it's a Docker image then they're likely using s6-overlay, which internally uses s6-rc already. :-)

from s6.

skarnet avatar skarnet commented on August 25, 2024 1

Ah, indeed they're not using s6-overlay. Using pure s6 is entirely fine here - it just doesn't have the same purpose, and in this case there should be a different place in the container's run scripts where you can run your oneshot.

from s6.

skarnet avatar skarnet commented on August 25, 2024

Controlling a service from within itself works and is supported, but is bad practice and generally a sign that you are abusing the pattern and need to redesign something.

Here you are using a supervised service to perform work that must only be done once. This is a misuse of s6; oneshot scripts are not meant to be supervised, and s6 is not the right tool to run your script. If you need to run it in an init sequence, for instance, the right tool for you to use would be s6-rc.

GitHub is not the place where we host s6 discussions. For more support, please join the supervision mailing-list. Thanks.

from s6.

lonix1 avatar lonix1 commented on August 25, 2024

In my case the docker image is outside of my control, so the service "terminating itself" is the only simple/reasonable option. I'm glad it's supported.

I will look into s6-rc. Thanks for the advice!

from s6.

lonix1 avatar lonix1 commented on August 25, 2024

I don't think so, but I will tell them to look into it. Thanks for the tip.

from s6.

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.