Summary: | rc restart service with different configs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tommoyer |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Allow service confile profiles to restart services |
Description
tommoyer
2006-09-26 07:50:35 UTC
This is quite a trivial patch, but is a functional change, so it won't appear until baselayout-1.13. However, a question need to be answered. Take the below scenario. Services "foo" and "bar" are in both runlevels. Service "foo" has runlevel configs, whilst service "bar" has not. Service "bar" needs service "foo" - so for "foo" to be restarted with the new config, service "bar" needs to be stopped in the interim. Should be happen, or should we skip restarting "foo"? Created attachment 98345 [details, diff]
Allow service confile profiles to restart services
>
> Services "foo" and "bar" are in both runlevels. Service "foo" has runlevel
> configs, whilst service "bar" has not. Service "bar" needs service "foo" - so
> for "foo" to be restarted with the new config, service "bar" needs to be
> stopped in the interim. Should be happen, or should we skip restarting "foo"?
>
In the above situation, I would stop and restart both services. This way, at the switching of the runlevel, the services are all started with the correct configurations.
This is fixed in baselayout-1.13.0_alpha1 |