Comments (5)
If it's a Docker image then they're likely using s6-overlay, which internally uses s6-rc already. :-)
from s6.
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.
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.
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.
I don't think so, but I will tell them to look into it. Thanks for the tip.
from s6.
Related Issues (20)
- Exec Stop Functionality in s6 HOT 5
- ExecStartPost equivalent functionality in s6 HOT 2
- readiness notification not working HOT 2
- [Question] transition to s6 based init HOT 3
- A few questions HOT 2
- Philosophy on command line built in help `--help` HOT 2
- Failing to build the latest s6 V2.10.0.0 HOT 1
- Failed to build the latest s6 v2.10.0.0 HOT 1
- s6-svscan shows warning messages on arm32v7/alpine container HOT 1
- [feature] Provide already-built (perhaps statically linked) binaries HOT 3
- Broken link to s6-svperms in overview HOT 1
- s6-svc -d and other signals are not affecting service as expected? HOT 3
- Noob here, I have a couple of questions. HOT 1
- adding hostname in s6-socklog lines and date repetition in s6-log HOT 6
- [Feature Request] Add i18n Support HOT 5
- Installation Error HOT 1
- s6-log: log retention duration HOT 2
- notifyoncheck does not kill check after localtimeout HOT 1
- A service is not restarted after SIGKILL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s6.