29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/config_o_mat/configurator/op/reload_one_service.rb', line 29
def call
service = services_to_reload.pop
service_def = service_defs[service]
restart_mode = service_def.restart_mode
if restart_mode == :restart || restart_mode == :restart_all
do_restart(service, service_def)
elsif restart_mode == :none
logger&.notice(
:skipped_service_restart,
name: service, systemd_unit: service_def.systemd_unit
)
else
do_flip_flop(service, service_def)
end
end
|