Skip to content

Conversation

@kaistierl
Copy link

@kaistierl kaistierl commented Apr 17, 2024

Fixes #49

Fixes unwanted service startup after installation when the systemd service unit is disabled by a systemd preset. With compat 12 --skip-systemd-native is now passed to update-rc.d.

Removed --with systemd since it was removed since compat 11 - see https://manpages.debian.org/bookworm/debhelper/debhelper-compat-upgrade-checklist.7.en.html

Tested by building the package on Debian 12 with debhelper version 13.11.4. Should theoretically work with debhelper 11.4 or later, according to debhelper changelog at https://launchpad.net/debian/+source/debhelper/11.4

Fixes unwanted service startup after installation when the systemd service unit is disabled by a systemd preset. With compat 12 `--skip-systemd-native` is now passed to invoke-rc.d.

Removed `--with systemd` since it was removed since compat 11 - see https://manpages.debian.org/bookworm/debhelper/debhelper-compat-upgrade-checklist.7.en.html

Tested by building the package on Debian 12 with debhelper version 13.11.4. Should theoretically work with debhelper 11.4 or later, according to debhelper changelog at https://launchpad.net/debian/+source/debhelper/11.4
@lukebakken
Copy link
Collaborator

I'm testing this out in my own Debian 12 env. Thanks.

Copy link
Collaborator

@lukebakken lukebakken left a comment

Choose a reason for hiding this comment

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

This worked perfectly in my environment 👍

@michaelklishin
Copy link
Contributor

@kaistierl thank you for contributing I suspect that setting was added a while ago when systemd was a fairly new development in Debian.

Can you think of any risks around adopting this change?

@michaelklishin
Copy link
Contributor

@kaistierl thank you for contributing I suspect that setting was added a while ago when systemd was a fairly new development in Debian.

Can you think of any risks around adopting this change?

I guess #49 mostly answers my questions.

@michaelklishin michaelklishin merged commit 133ea73 into rabbitmq:main Apr 18, 2024
@michaelklishin
Copy link
Contributor

@Mergifyio backport v3.13.x

@mergify
Copy link

mergify bot commented Apr 18, 2024

backport v3.13.x

✅ Backports have been created

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.

RabbitMQ Deb package does not honor systemd preset / disabled unit for automatic service startup

3 participants