-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: graceful shutdown and systemd socket activation in adapter-node #11653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
benmccann
merged 51 commits into
sveltejs:main
from
karimfromjordan:systemd-socket-activation
Mar 8, 2024
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
e6999dc
adapter-node: add systemd socket activation
karimfromjordan 5694536
fix quotes
karimfromjordan 8821470
cleanup and handle graceful shutdown
karimfromjordan 13f4875
Update packages/adapter-node/src/index.js
Rich-Harris b941f87
changeset
Rich-Harris c7574f3
fix variables
karimfromjordan 62daceb
add `SIGINT` handler
karimfromjordan bf5d4f8
improve docs
karimfromjordan a4b3a16
more improvements to the docs
karimfromjordan 68d8e4f
`-1` is not truthy!
karimfromjordan 08d253c
cleanup
karimfromjordan 5140d10
rename `TIMEOUT` to `IDLE_TIMEOUT`
karimfromjordan be06b58
rename `LISTEN_FDS` to `SD_LISTEN_FDS_START`
karimfromjordan 546fccb
finalize `shutdown` function
karimfromjordan 5d53900
format
karimfromjordan c396050
format
karimfromjordan af74d37
update docs
karimfromjordan 03177fb
fix spelling
karimfromjordan a6d31a0
improve wording
karimfromjordan 2088465
fix spelling
karimfromjordan ebcbc5d
improve wording
karimfromjordan aafb019
format
karimfromjordan 2a21e62
add code comment
karimfromjordan 6230fc0
fix typo
karimfromjordan a22310f
improve wording again
karimfromjordan 16cd536
improve wording again
karimfromjordan 5718705
Merge branch 'master' into systemd-socket-activation
karimfromjordan bcd183c
update changeset
karimfromjordan 37ffcfa
call `process.exit()`
karimfromjordan b3b6faf
just use arrow functions
karimfromjordan ecd6e06
remove `process.exit()`
karimfromjordan 8f65872
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
karimfromjordan eedf863
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
karimfromjordan 02c0ce9
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
karimfromjordan a521c0d
condense docs
karimfromjordan ed3cdcf
update changeset
karimfromjordan fda2354
fix typo
karimfromjordan ecd7d63
update changeset
karimfromjordan 9aa8fdd
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
karimfromjordan 872b99e
throw error when `LISTEN_PID` or `LISTEN_FDS` cannot be validated
karimfromjordan 0d88612
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
karimfromjordan 382189e
fix typo
karimfromjordan 4ad6a7c
optimize shutdown
karimfromjordan d8b0c53
update code comment
karimfromjordan 58c5bb1
make if conditions clearer
karimfromjordan d3a1d77
Update .changeset/stale-donkeys-mix.md
Rich-Harris 9b8dfde
ignore `envPrefix` for `LISTEN_PID` and `LISTEN_FDS`
karimfromjordan 4515415
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
benmccann c6b72e2
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
benmccann 80e7566
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
benmccann d8c8a90
Update documentation/docs/25-build-and-deploy/40-adapter-node.md
benmccann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sveltejs/adapter-node": minor | ||
--- | ||
|
||
feat: add systemd socket activation | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sveltejs/adapter-node": major | ||
--- | ||
|
||
breaking: add graceful shutdown |
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.