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
Provide a way to propagate reload requests from targets to services #710
Comments
We have the same problem for PostgreSQL in Debian. There can be an arbitrary number of PostgreSQL "clusters" (PG speak for database instance) running, managed by postgresql@.service. In the past, /etc/init.d/postgresql start/stop/restart/reload would act on all clusters. To get the same behavior with systemd, I started with making a postgresql.target, but quickly realized that targets do not support reload. Now we have a postgresql.service with Exec=/bin/true which works, but which keeps confusing users because using true there is just weird. PropagateReloadsTo= won't work because the set of clusters is dynamic. Currently we have this in postgresql@.service:
IMHO the existing PartOf and ReloadPropagatedFrom settings would just work if targets would accept them. (I can see that you wouldn't want "systemctl reload default.target" to reload the whole system, but if something explicitely says "ReloadPropagatedFrom some.target", that could Just Work and wouldn't violate the POLA.) Thanks for considering :) |
Let me copy my reply from #999: I think I'd like to see a boolean PropagateReload=yes instead or at least in addition to PropagateReloadTo=foo.service |
BTW, this will be fixed by #6428. |
Closing as #6428 got merged. |
Any plan or milestone to fix this issue? |
well, the half of the original PR that fixed this has been comitted and released in v235 what's left of the PR is the part that causes a .device reload on event. So I think this FR can actually be closed... |
@martinpitt What do you say? Thanks. |
Implemented in f54bcca. Closing |
@poettering Thank you for confirming this. |
This is a followup from the mailing list discussion http://lists.freedesktop.org/archives/systemd-devel/2015-July/033633.html
2015-07-22 20:41 GMT+02:00 Lennart Poettering lennart@poettering.net:
The text was updated successfully, but these errors were encountered: