Skip to content
Snippets Groups Projects
Commit 7c81e77e authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

mark down a service unsupervise

parent 940d4c7c
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,20 @@
static void sanitize_it(resolve_service_t *res)
{
log_flow() ;
ss_state_t sta = STATE_ZERO ;
sanitize_fdholder(res, STATE_FLAGS_FALSE) ;
if (!state_messenger(res, STATE_FLAGS_TOUNSUPERVISE, STATE_FLAGS_TRUE))
log_dieusys(LOG_EXIT_SYS, "send message to state of: ", res->sa.s + res->name) ;
if (!state_read(&sta, res))
log_dieu(LOG_EXIT_SYS, "read state file of: ", res->sa.s + res->name) ;
state_set_flag(&sta, STATE_FLAGS_TOUNSUPERVISE, STATE_FLAGS_TRUE) ;
state_set_flag(&sta, STATE_FLAGS_ISUP, STATE_FLAGS_FALSE) ;
if (!state_write(&sta, res))
log_dieu(LOG_EXIT_SYS, "write state file of: ", res->sa.s + res->name) ;
sanitize_scandir(res) ;
sanitize_livestate(res) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment