Improvements: Run web only if enabled + Rename svc-beets + Add s6 overlay for drop2beets#142
Improvements: Run web only if enabled + Rename svc-beets + Add s6 overlay for drop2beets#142dtrunk90 wants to merge 3 commits intolinuxserver:masterfrom
Conversation
There was a problem hiding this comment.
Thanks for opening this pull request! Be sure to follow the pull request template!
|
I am a bot, here are the test results for this PR:
|
f1f827b to
ebffeef
Compare
|
I am a bot, here are the test results for this PR:
|
ebffeef to
f5cfc0c
Compare
|
I am a bot, here are the test results for this PR:
|
|
I am a bot, here are the test results for this PR:
|
|
Would be great to get at least approval for the first commit which conditionally runs web (or drop that service entirely). The beets custom service could be done via a custom service volume. |
|
My thoughts:
|
It is. The only thing done here was adding an s6 service. But as mentioned in my previous comment this could also be achieved by mapping a volume.
Agree and disagree. Not all users want to use the container as a web service. Some of us want a drop2beets container, which is a longrun service too. I understand your point but why making a difference for drop2beets then? Either treat it equally (add drop2beets service and let the users choose what longrun service they actually want by checking their config like i did for both of the s6 services and add the s6 service for drop2beets as well or drop the web s6 service as well since it could be a mod, right?
Is that how s6 works? It retries over and over again? |
That's not a mod (referring to our
We designed a beets container with the web service. If you want something else, feel free to fork it and build it yourself, or you can mod it via different ways: https://docs.linuxserver.io/general/container-customization/
That's its job as the supervisor. If a service stops, it restarts it. |
True. That's just customization - not what can be considered a mod.
Tbh that's too much work just to remove the web s6 service. I'm not really happy with that solution but I do understand the point here.
I just thought it wouldn't if the exit code is 0 but thanks. Learned something new. I'll think about submitting a mod then. |
Description:
Benefits of this PR and context:
It fixes #141 and all users would benefit from the other commits
How Has This Been Tested?
I've used the following docker-compose.yml to run and test my changes:
webif the error messageerror: unknown command 'web'dissappeared.webif the web service is up and runningdrop2beetsif the service is up and runningSource / References:
#141
#138