Skip to content
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

wasm: add kuasar-wasm systemd service #86

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

jwcesign
Copy link
Contributor

@jwcesign jwcesign commented Sep 7, 2023

wasm: add kuasar-wasm systemd service

@jwcesign jwcesign requested review from a team as code owners September 7, 2023 11:51
@Burning1020
Copy link
Member

Please rebase your commits.

Copy link
Member

@Burning1020 Burning1020 left a comment

Choose a reason for hiding this comment

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

lgtm

[Service]
Type=simple
ExecStart=/usr/local/bin/wasm-sandboxer --listen /run/wasm-sandboxer.sock --dir /run/kuasar-wasm
ExecReload=/bin/kill -s HUP $MAINPID
Copy link
Member

Choose a reason for hiding this comment

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

Currently wasm type sandboxer doesn't support config reload feature, ExecReload needs to be removed.

Copy link
Member

Choose a reason for hiding this comment

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

What is the consequence of keeping this ExecReload?

Copy link
Member

Choose a reason for hiding this comment

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

If the user runs the systemctl reload wasm-sandboxer command, the wasm-sandboxer process will receive the SIGHUP signal and process exit abnornally, which does not meet the expectation of the systemctl reload command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@flyflypeng flyflypeng merged commit c189530 into kuasar-io:main Sep 14, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants