feat(systemd): DDNS_TIME と UPDATE_TIME を独立した2本のタイマーで管理 (issue #52)#53
Closed
liplus-lin-lay wants to merge 1 commit intomainfrom
Closed
feat(systemd): DDNS_TIME と UPDATE_TIME を独立した2本のタイマーで管理 (issue #52)#53liplus-lin-lay wants to merge 1 commit intomainfrom
liplus-lin-lay wants to merge 1 commit intomainfrom
Conversation
DDNS_TIME (IP チェック間隔) と UPDATE_TIME (keepalive 間隔) を独立した systemd タイマーで制御することで、任意の組み合わせが正しく動作するようにする。 例: DDNS_TIME=1d, UPDATE_TIME=2m も DDNS_TIME=1m, UPDATE_TIME=30d も両立可能。 - systemd/dipper_ai-keepalive.service/.timer を新規追加 - internal/mode/keepalive.go: `keepalive` コマンドを新規実装 - MyDNS 全エントリを無条件で force update - Cloudflare は対象外 (keepalive 不要) - EMAIL_UP_DDNS 対応 - cmd/dipper_ai/main.go: `keepalive` サブコマンドを追加 - internal/mode/update.go: forceSync / updateGate ロジックを除去 - update コマンドは IP 変化時のみ更新するシンプルな責務に - scripts/install.sh: DDNS_TIME タイマーと UPDATE_TIME タイマーを両方生成 - UPDATE_TIME=0 の場合は keepalive タイマーをインストールしない - テスト: keepalive_test.go 新規追加、update_test.go を keepalive 分離に合わせ更新 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Mar 5, 2026
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.
クローズ理由
2本タイマー方式は systemd 側に複雑さを押し出す設計であり、実機デバッグで「check タイマーのせいか keepalive タイマーのせいか」の切り分けが困難になる。
デーモン方式に変更する (#55) ため本 PR を取り下げる。