Repository navigation
feeadjuster: run the daily timer as the configured clightning user - #161
Merged
Merged
Conversation
The clightning-feeadjuster oneshot named the user by hand, so a node with a custom services.clightning.user got a timer that failed to start or ran as an account that cannot reach the RPC socket, and the daily fee adjustment silently stopped. The data directory was also interpolated into ExecStart without quotes. Take the user from the clightning module and quote the directory. A configuration check evaluates a node with a custom user and a data directory with a space and checks both.
seberm
force-pushed
the
feeadjuster-user
branch
from
October 27, 2026 22:06
e28a7e5 to
05424fb
Compare
seberm
enabled auto-merge
October 27, 2026 22:09
seberm
approved these changes
Oct 27, 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.
Fixes #138.
clightning-feeadjusternamed its user by hand asclightning, so a node with a customservices.clightning.usergot a daily timer that either failed to start or ran as an account that can't reach the RPC socket. Either way the fee adjustment silently stopped, and that timer is the only thingadjustDailydoes. The same line put${clightning.dataDir}intoExecStartwithout quotes, so a data directory with a space broke the call too.What changed:
User = clightning.user, taken from the clightning module like every other unit does.ExecStart. systemd strips the quotes and passes the path as one argument.testFeeadjusterFollowsClightningUserintest/configuration.nix: a node withuser = "cln-custom"anddataDir = "/var/lib/cln custom"must get that user on the unit and the quoted path in the command.Tested
module-configflake check fails on master with only the new test added (userisclightning, the quoting check is false) and passes on this branch, both built on x86_64-linux.nix flake checkand the VM scenarios run in CI.Codex (GPT-6 Astra, xhigh) reviewed the commit: single-quoting is the right systemd syntax for the argument, the test fixture is valid, and no defects. It noted two other literal accounts,
charge-lndin charge-lnd.nix andtorin onion-addresses.nix, but neither of those is a configurable option, so they're fine. DeepSeek V4.1 Flash 1017 (max) and GLM 5.3 (max) audited the tree at e28a7e5 with Codex (GPT-6 Astra, xhigh) as the second opinion: five findings in modules/, none in the two files this PR touches. One is #160, which DeepSeek found on its own, two are Tor and ordering claims Astra marked false positives, and the other two are leads I'm checking against open issues.