HomeClusterLabs Projects

ocf-shellfuncs: systemd_drop_in only if needed

Description

ocf-shellfuncs: systemd_drop_in only if needed

Avoid dbus overload upon many simultaneous "daemon-reload" invocations
(when a resource agent using systemd_drop_in() is called multiple times
as part of parallel resource operations in Pacemaker) by skipping the
file creation and reload if the expected data already exists.

Whilst at it, align the indentation of the heredoc with the other parts
of the function.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>

Details

Event Timeline

Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> committed rR82958dc115c4: ocf-shellfuncs: systemd_drop_in only if needed (authored by Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>).Tue, Oct 8, 6:30 PM