Repository navigation
ttp.service: stay stoppable on exit 3/9; notification recipient in ttp.conf - #202
Merged
Merged
Conversation
`ttp start` exits 3 (Tor not verified) and 9 (notifications unavailable) with the session installed. As a oneshot unit, ttp.service was then `failed`, and systemd never runs ExecStop for a unit that did not start: `systemctl stop ttp` removed nothing. SuccessExitStatus=3 9 keeps the unit active; the reason stays in the journal and in `ttp status`. Reported by the AUR maintainer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
…r is unverified ttp.service has no SUDO_UID, so notifications could not start without --notification-user in the unit. `user` under [notifications] now names the recipient when no flag is given. It lives in LoadedSettings, not in the frozen Settings snapshot, so a lock written before an upgrade still reads. With no graphical session yet, as at boot, the error says so. The example config has its values commented out: installed as /etc/ttp/ttp.conf, as the AUR package does, it pins nothing. The inconclusive-verification message now says what holds meanwhile, from evidence start has (the table read back from the kernel), without claiming isolation (ADR 0013). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
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.
Follows a report by Rafael Dominiquini, maintainer of the AUR package, who tested
packaging/ttp.servicewith notifications enabled.Fixed:
systemctl stop ttpcould remove nothing.ttp startexits 3 (Tor not verified) or 9 (notifications unavailable) with the session installed. For a oneshot unit that is a failed start, and systemd never runsExecStopfor a unit that did not start, so the table and DNS overlay stayed untilsudo ttp stop. The unit now hasSuccessExitStatus=3 9. A static test ties the values toExitCode. Exit 3 is deliberately not a teardown: that would turn a blocked, unverified session into a cleartext one.Added:
notifications.userin/etc/ttp/ttp.conf. ttp.service has noSUDO_UID, so notifications needed--notification-userin the unit. The key names the recipient when no flag is given; the flag wins. It lives inLoadedSettings, not in the frozenSettingssnapshot, so a lock written before an upgrade still reads. The recipient's graphical session must exist when TTP starts; a session started at boot now gets an error saying exactly that.Changed:
assets/ttp.conf.examplehas every value commented out, so installing it as/etc/ttp/ttp.conf(as the AUR package does, withbackup=) pins no defaults.Docs: interfaces, CLI reference (exit codes + unit), session-observations how-to, changelog with credit.
🤖 Generated with Claude Code