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

NIFI-7192 - nifi.sh install not working on systemd servers #4079

Closed

Conversation

rmarturano
Copy link
Contributor

@rmarturano rmarturano commented Feb 24, 2020

Thank you for submitting a contribution to Apache NiFi.

Please provide a short description of the PR here:

Description of PR

After invoking nifi.sh install, systemd manager configuration is reloaded. In this way, wrapper from init.d to systemd service is generated and the service will work smoothly. Fixes bug NIFI-7192.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

  • Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

  • Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
  • Have you written or updated unit tests to verify your changes?
  • Have you verified that the full build is successful on both JDK 8 and JDK 11?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
  • If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
  • If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

@rmarturano
Copy link
Contributor Author

@pvillard31 / @alopresto can you please take a look on this?

@jfrazee
Copy link
Member

jfrazee commented Apr 23, 2020

@rmarturano For due diligence, what distributions has this been tested against? I have two worries with this: (1) that the commands might not always be on the path and (2) that using pidof might not be reliable.

I think it might be worthwhile to add some additional checks (e.g., what's mentioned by https://www.freedesktop.org/software/systemd/man/sd_booted.html).

Copy link
Member

@jfrazee jfrazee left a comment

Choose a reason for hiding this comment

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

@rmarturano Do you still want to see this go in?

@jfrazee jfrazee changed the base branch from master to main February 15, 2021 18:44
After invoking nifi.sh install, systemd manager configuration is reloaded.
In this way, wrapper from init.d to systemd service is generated and the service will work smoothly.
@rmarturano
Copy link
Contributor Author

@jfrazee @exceptionfactory first of all thanks for your inputs.
I applied suggested changes and rebased.

@github-actions
Copy link

We're marking this PR as stale due to lack of updates in the past few months. If after another couple of weeks the stale label has not been removed this PR will be closed. This stale marker and eventual auto close does not indicate a judgement of the PR just lack of reviewer bandwidth and helps us keep the PR queue more manageable. If you would like this PR re-opened you can do so and a committer can remove the stale tag. Or you can open a new PR. Try to help review other PRs to increase PR review bandwidth which in turn helps yours.

@github-actions github-actions bot added the Stale label Jun 17, 2021
@github-actions github-actions bot closed this Jul 3, 2021
@jfrazee jfrazee reopened this Feb 2, 2022
@rmarturano
Copy link
Contributor Author

@jfrazee Shall we merge it?

@github-actions github-actions bot removed the Stale label Feb 4, 2022
@MikeThomsen
Copy link
Contributor

@jfrazee why did you hold off on merge after approving? Was more work required?

@jfrazee jfrazee closed this in a8fd599 Feb 18, 2022
@jfrazee
Copy link
Member

jfrazee commented Feb 18, 2022

@MikeThomsen Was just trying to snag some time to test on something besides Ubuntu. I validated it on Ubuntu 20.04 and OpenSuSE 15.3. This fix works as expected for both.

There was a wrinkle with OpenSuSE -- they removed the rc*.d dirs entirely now so need to open another issue for that. This doesn't have anything to do with this PR though so merged.

Thanks @rmarturano

@rmarturano rmarturano deleted the NIFI-7192-Fix-nifi-sh-install branch February 19, 2022 08:10
krisztina-zsihovszki pushed a commit to krisztina-zsihovszki/nifi that referenced this pull request Jun 28, 2022
This closes apache#4079

Signed-off-by: Joey Frazee <jfrazee@apache.org>
Lehel44 pushed a commit to Lehel44/nifi that referenced this pull request Jul 1, 2022
This closes apache#4079

Signed-off-by: Joey Frazee <jfrazee@apache.org>
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.

4 participants