3 -export([write_pid
/1, cycle
/1, cycle_all
/1, cycle_all
/2]).
5 write_pid([Location
]) ->
7 ok
= file:write_file(Location
, list_to_binary(Pid
)),
10 cycle([Node
]) when is_list(Node
) ->
11 cycle(list_to_atom(Node
));
13 pong
= net_adm:ping(Node
),
15 resource_manager:cycle(Node
),
18 cycle_all([Master
, Delay
]) ->
19 cycle_all(list_to_atom(Master
), list_to_integer(Delay
)),
22 cycle_all(Master
, Delay
) ->
23 pong
= net_adm:ping(Master
),
25 rails_connection_pool:cycle_all(Delay
),