-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to use Systemd module with tar distribution #3666
Comments
@peterzhuamazon do you know anything about this? |
Sure, there is no limit saying you can only use systemd with deb/rpm. You can certainly write a service script yourself for things like tar, but that relies on you to setup rules for that script. The code here is just saying DEB/RPM is having packagedistro type, I see no issues with this setup tho. Please let me know your thoughts. Thanks. |
Hi @peterzhuamazon and thx for your response I exactly do what you say ;p Indeed I create my own Systemd service of type "notify", init env var The problem is it only works after edit Refer to line : OpenSearch/modules/systemd/src/main/java/org/opensearch/systemd/SystemdPlugin.java Line 80 in 7005b9e
and line : OpenSearch/modules/systemd/src/main/java/org/opensearch/systemd/SystemdPlugin.java Line 148 in 7005b9e
TAR installation cannot notify Systemd to tell service is really up because The only way to use Systemd with TAR distribution without hack opensearch-env file is to use a "simple" service and not a "notify" one. But using a simple service make systemd module useless and can creates issues when service starts because the system thinks service is fully up but it's not the case. |
@Ripolin if you are talking about that If you think the above setup is not ideal, would you mind raise a PR to fix it? 😄 Thanks. |
@peterzhuamazon OK I'll do a PR soon 👍 |
Neither do I :( |
Signed-off-by: Florent David <florent.david@gmail.com>
* Fix #3666 Signed-off-by: Florent David <florent.david@gmail.com> * Fix linter issues Signed-off-by: Florent David <florent.david@gmail.com> * Add systemd module in linux and freebsd archives Signed-off-by: Florent David <florent.david@gmail.com> (cherry picked from commit 2858eb1) Co-authored-by: Ripolin <florent.david@gmail.com>
Why use of Systemd module is limited to RPM and DEB installations ?
To me there is no relationship between Sytemd and package managers and it could be possible to use Systemd module for installations using tar distribution.
OpenSearch/modules/systemd/src/main/java/org/opensearch/systemd/SystemdPlugin.java
Line 75 in 7005b9e
The text was updated successfully, but these errors were encountered: