Repository navigation
Fix oneshot: set up file to invoke the run script - #11
Merged
Merged
Conversation
In s6-overlay v3, the 'up' file for a oneshot service is an execline program specifying what to run — it must contain the path to the script. Leaving it empty means the oneshot completes instantly without doing anything, so no host keys were generated. https://claude.ai/code/session_01XrvMKQ6TFAUnXn7Mw7dt5q
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In s6-overlay v3, the
upfile for a oneshot service is an execline program that specifies what to execute — it must contain the path to the script. We leftupempty, so the oneshot ran and completed instantly without doing anything, and no host keys were ever generated.Fix: set
upto contain the path torun:Verified by inspecting the actual
linuxserver/docker-modsuniversal-cloudflaredbranch directly.Test plan
/config/ssh/containsdropbear_ecdsa_host_keyanddropbear_ed25519_host_keysvc-mod-dropbearstays running in/run/service/instead of crash-loopingssh abc@localhostworks from inside the containerhttps://claude.ai/code/session_01XrvMKQ6TFAUnXn7Mw7dt5q
Generated by Claude Code