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

TIP quarkus-systemd-notify when deploy to systemd #31097

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

tarilabs
Copy link
Contributor

I've been following a tutorial to deploy container image based application as a service on Linux using Podman and Systemd.

I am a Java developer, not much of a sysadmin. The tutorial was easy to follow and everything seemed to be working as expected, except when configuring a systemd service the Quarkus app was started again as normal (I could interact with the app) but the systemd status was always dangling to "Starting" / initialising, despite the log from the Quarkus app showed it was fully started for long.

I've then been following a "rabbit hole" only to figure out:

  1. avoid launching with podman run --sdnotify=container ... unless I know for certain the container image do support the NOTIFY_SOCKET, which is not always so trivial to figure out. I've learned from:
    --sdnotify default value from the "podman create" man page is "container" but "conmon" is used when running "podman generate systemd ..." containers/podman#15029 (comment)
  2. I later noticed analogous topic for Quarkus was discussed in this thread:
    Integrate Linux systemd-notify with Quarkus #29107 (comment)

This was a great learning opportunity, but at the same time if only I had this TIP inside of the quarkus guide (this PR) I guess it would have saved me quite some time 😅 , so I hope this addendum is merged in the hope of being a very relevant suggestion to the next one reading after me :)

Thanks!

@github-actions
Copy link

github-actions bot commented Feb 11, 2023

🙈 The PR is closed and the preview is expired.

Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

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

I think this deserves a separate section, WDYT?

@tarilabs
Copy link
Contributor Author

I think this deserves a separate section, WDYT?

Very fine with me @gastaldi shall I name it "Deployment considerations" as a sibling of this "Building" section, and push it later before the "Customizing" section?

@gastaldi
Copy link
Contributor

That or something easier to find looking at the table of contents, like Integrating with systemd-notify

@gastaldi
Copy link
Contributor

LGTM, Can you please squash your commits so we can merge this?

@gastaldi
Copy link
Contributor

Ah you already did that, thanks

@gastaldi gastaldi added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Feb 11, 2023
@gastaldi gastaldi merged commit 6da5320 into quarkusio:main Feb 11, 2023
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Feb 11, 2023
@quarkus-bot quarkus-bot bot added this to the 3.0 - main milestone Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants