Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Update debian systemd service to use Type=notify #8169

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

dalcde
Copy link
Contributor

@dalcde dalcde commented Aug 25, 2020

This ensures systemctl start matrix-synapse returns only after synapse
is actually started, which is very useful for automated deployments.

Fixes #5761

@richvdh richvdh requested a review from a team August 26, 2020 12:12
@@ -0,0 +1 @@
Use Type=notify in debian systemd service.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes to the debian packaging go in the debian/changelog file, not here: please could you move this?

(there are some notes in CONTRIBUTING.rst)

@richvdh richvdh added the X-Awaiting-Changes A contributed PR which needs changes and re-review before it can be merged label Aug 26, 2020
@clokep
Copy link
Member

clokep commented Aug 26, 2020

See the docs for an explanation.

it is expected that the service sends a notification message via sd_notify(3) or an equivalent call when it has finished starting up. systemd will proceed with starting follow-up units after this notification message has been sent.

Is this true, does synapse fire this?

@richvdh
Copy link
Member

richvdh commented Aug 26, 2020

@clokep yes it does!

@dalcde
Copy link
Contributor Author

dalcde commented Aug 26, 2020 via email

@dalcde
Copy link
Contributor Author

dalcde commented Aug 26, 2020 via email

@richvdh richvdh self-requested a review August 26, 2020 13:08
@richvdh richvdh removed the X-Awaiting-Changes A contributed PR which needs changes and re-review before it can be merged label Aug 26, 2020
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, it looks like you've picked up a broken version of develop. could you merge the latest version?

debian/changelog Outdated

* Use Type=notify in systemd service

-- Synapse Packaging team <packages@matrix.org> Wed, 26 Aug 2020 12:41:36 +0000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably put your own name in here.

This ensures systemctl start matrix-synapse returns only after synapse
is actually started, which is very useful for automated deployments.

Fixes matrix-org#5761

Signed-off-by: Dexter Chua <dec41@srcf.net>
@dalcde
Copy link
Contributor Author

dalcde commented Aug 26, 2020 via email

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@richvdh richvdh merged commit cf2f6c3 into matrix-org:develop Aug 27, 2020
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'a466b6797':
  Reduce run-times of tests by advancing the reactor less (#7757)
  Update debian systemd service to use Type=notify (#8169)
  Remove remaining is_guest argument uses from get_room_data calls (#8181)
  Do not propagate typing notifications from shadow-banned users. (#8176)
  Remove unused parameter from, and add safeguard in, get_room_data (#8174)
  Add required Debian dependencies to allow docker builds on the arm platform (#8144)
  Allow running mypy directly. (#8175)
  Update the test federation client to handle streaming responses (#8130)
  Do not propagate profile changes of shadow-banned users into rooms. (#8157)
  Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator (#8171)
  Convert simple_select_one and simple_select_one_onecol to async (#8162)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update the systemd script in the debian package to use sd-notify
3 participants