Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787815 - net-misc/rabbitmq-server: init script shouldn't depend on `net`
Summary: net-misc/rabbitmq-server: init script shouldn't depend on `net`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-05-03 01:49 UTC by Marco Sirabella
Modified: 2022-04-12 09:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Sirabella 2021-05-03 01:49:20 UTC
Hi,

When I do `/etc/init.d/NetworkManager restart`, `RabbitMQ` is one of the services that are taken down during the restart.

This seems unnecessary, as it doesn't really need internet access. Similar applications are redis or postgres, which don't need to be taken down on net restart.

Thanks,

--
Marco Sirabella
Comment 1 Tom Gillespie 2022-03-22 05:52:20 UTC
I have also encountered this issue. The hard dependency on net is not necessary and makes it difficult to run rabbit inside a container where there is not explicit net daemon.
Comment 2 Larry the Git Cow gentoo-dev 2022-04-12 09:30:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7127a281450017b8bec9082537c48170f02f5b8b

commit 7127a281450017b8bec9082537c48170f02f5b8b
Author:     Tom Gillespie <tgbugs@gmail.com>
AuthorDate: 2022-03-22 05:57:19 +0000
Commit:     Alexys Jacob <ultrabug@gentoo.org>
CommitDate: 2022-04-12 09:30:12 +0000

    net-misc/rabbitmq-server: remove net dep from init
    
    rabbitmq does not have a hard requirement on the net service
    therefore remove the dependency which causes the service to
    fail to start if net has not been started or is running in an env
    where there is not explicit net service (e.g. in a container).
    Closes: https://bugs.gentoo.org/787815
    Signed-off-by: Tom Gillespie <tgbugs@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/24702
    Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>

 net-misc/rabbitmq-server/files/rabbitmq-server.init-r4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)