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

spring boot and daemon plugin on systemd #404

Open
fer-marino opened this issue Sep 8, 2021 · 2 comments
Open

spring boot and daemon plugin on systemd #404

fer-marino opened this issue Sep 8, 2021 · 2 comments

Comments

@fer-marino
Copy link

hallo,
I'm not sure if this is possible, but I would like to package a spring boot 2 application as a daemon and I don't really know how to do it. I've noticed that the daemon plugin as a template for initd, but modern linux systems has systemd. I couldn't find a template for that.

If there is no easy way I would like to contribute :)

cheers,
Fernando

@DanielThomas
Copy link
Contributor

Internally we're currently just running daemontools under systemd:

[Unit]
Description=Daemontools service supervision

[Service]
ExecStart=/usr/bin/svscanboot /service/
Restart=always
TasksMax=infinity

We'd certainly be open to an ospackage-daemon-systemd/ospackage-application-systemd variant - we've certainly discussed it internally but we abstract away service start for our Spring Boot services so it hasn't been a priority.

@fer-marino
Copy link
Author

Hi,
we currently deploy spring boot apps on systemd without daemon tools as described here:
https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment.installing.nix-services.system-d

So in my opinion what is needed is just some code that handle the systemd definition. Systemd is much more advanced than initv, and perform most of the tasks that daemontools does.

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

No branches or pull requests

2 participants