anchor.diff:      Hosts = hosts:all(ServiceName),
       get_steps(set_cluster_ips, Ctx#{hosts => Hosts});
   
  -get_steps(get_nagios_response, #{name := Name}) ->
  +get_steps(get_nagios_response, #{name := ServiceName}) ->
       [#step{
           function = get_nagios_response,
  -        hosts = hosts:all(Name),
  +        hosts = hosts:all(ServiceName),
           selection = any
       }];
   
  
positive.code: %% @doc Writes certificate paths to the app config file of the service.
  %% @end
  %%--------------------------------------------------------------------
  -spec setup_cert_paths(service:ctx()) -> ok | no_return().
  setup_cert_paths(#{name := AppName}) ->
      lists:foreach(fun({SrcEnv, DstEnv}) ->
          Path = filename:absname(onepanel_env:get(SrcEnv)),
          ok = onepanel_env:write([AppName, DstEnv], Path, AppName)
      end, [
          {web_key_file, web_key_file},
          {web_cert_file, web_cert_file},
  
negative.code:     onepanel_vm:write("setcookie", maps:get(cookie, Ctx, erlang:get_cookie()),
          VmArgsFile),
  
      setup_cert_paths(ServiceName, ServiceName),
  
      service:add_host(ServiceName, Host).
  
  
  -spec start(service:ctx()) -> ok | no_return().
  start(#{name := ServiceName} = Ctx) ->
      service_cli:start(ServiceName, Ctx),
      service:update_status(ServiceName, unhealthy),
      service:register_healthcheck(ServiceName, #{hosts => [hosts:self()]}),
      ok.
  
  
  -spec stop(service:ctx()) -> ok.
  stop(#{name := ServiceName} = Ctx) ->
      onepanel_cron:remove_job(ServiceName),
      service_cli:stop(ServiceName),
      % check status before updating it as service_cli:stop/1 does not throw on failure
      status(Ctx),
      ok.
  
  
  -spec status(service:ctx()) -> service:status().
  status(#{name := ServiceName} = Ctx) ->
      Module = service:get_module(ServiceName),
      service:update_status(ServiceName,
          case service_cli:status(ServiceName, ping) of
              running -> Module:health(Ctx);
              stopped -> stopped;
              missing -> missing
  