Skip to content

Conversation

chenx97
Copy link
Member

@chenx97 chenx97 commented Oct 6, 2025

Topic Description

Package(s) Affected

  • ss-tproxy: 4.8.3-1

Security Update?

No

Build Order

#buildit ss-tproxy

Test Build(s) Done

Primary Architectures

  • Architecture-independent noarch

@chenx97 chenx97 added the has-fix Topic contains a fix for a known issue label Oct 6, 2025
@chenx97 chenx97 force-pushed the ss-tproxy-postinst-refresh branch 2 times, most recently from 001fb30 to a6c70f5 Compare October 6, 2025 20:53
@chenx97 chenx97 marked this pull request as ready for review October 8, 2025 03:24
@chenx97 chenx97 marked this pull request as draft October 10, 2025 16:33
@chenx97
Copy link
Member Author

chenx97 commented Oct 10, 2025

fix pending: try-restart is a no-op when the unit is not active.

@chenx97 chenx97 force-pushed the ss-tproxy-postinst-refresh branch from a6c70f5 to a39c923 Compare October 11, 2025 02:33
- remove prerm
  - no need to stop the oneshot unit before the upgrade
  - restart active units in postinst instead
  - also attempt to start enabled but inactive units
- use git-based SRCS[^1]
- make echoes more informative
- reload the systemd configuration in postinst
- use `is-active` in a more elegant manner
  - with `--quiet` we just need to know if systemctl returns 0
- silence systemd unit start failures in postinst as we should allow
  users to debug their own configurations later

[^1]: https://github.blog/open-source/git/update-on-the-future-stability-of-source-code-archives-and-hashes/#future-stability-of-archives-and-hashes
@chenx97 chenx97 force-pushed the ss-tproxy-postinst-refresh branch from a39c923 to 768de84 Compare October 11, 2025 11:43
@chenx97
Copy link
Member Author

chenx97 commented Oct 12, 2025

image

Upgrading works

image

Reinstalling with disabled and inactive unit works

image

Reinstalling with active unit works

image

Reinstalling with enabled but inactive unit works

image

Installation doesn't fail when the systemd unit fails

@chenx97 chenx97 marked this pull request as ready for review October 12, 2025 13:44
@chenx97 chenx97 requested a review from MingcongBai October 13, 2025 06:05
@MingcongBai MingcongBai merged commit 1cefc4d into stable Oct 13, 2025
1 check passed
@MingcongBai MingcongBai deleted the ss-tproxy-postinst-refresh branch October 13, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has-fix Topic contains a fix for a known issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants