-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autostop feature #1212
Autostop feature #1212
Conversation
54822de
to
56bcfcc
Compare
Thanks for the PR @Oekn5w . As my launch-time version of this amounts to a oneline
... and the functionality (in terms of detect-idle, zero players) is otherwise identical to autopause, I wondered if an approach that shoehorns a custom action into the existing autopause could work, provided it isn't confusing ... as an alternative to duplicating So I was debating one of the following:
My current leaning is towards the first of these. WDYT - or are there other advantages in forking |
As there are major differences with how the feature works and requires outside container configuration, I thought this approach is more viable to avoid confusion compared to cobbling this together with a startup sed command. Autopause does require a lot of validation and configuration for the knockd stuff, which is not needed for Autostop. Additionally we can provide a nice log message with the correct name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the general observation @javabrett that it looks like more code duplication than expected; however, I do also agree @Oekn5w with the improved usability with the current approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still need to research how can have GitHub actions do a one off test-image build for PRs, as needed. However, maybe I'll save that for another time and just merge this PR.
I found some ideas for PR-driven test image building; however, I'll experiment with that separately. |
implements #1211 according to Discord description.