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

remove livestate in all case

parent 6dab2572
No related branches found
No related tags found
No related merge requests found
......@@ -405,8 +405,11 @@ void tree_unsupervise(stralloc *live, char const *tree, char const *treename,uid
if (!list.len)
{
log_warn("Not supervised: ",livestate.s) ;
return ;
/** No service to unsupervise but we need to
* delete the livestate anyway*/
log_warn("No service to unsupervise: ",livestate.s) ;
/** pass through s6rc_servicedir_unsupervise just in case */
goto follow ;
}
{
......@@ -439,6 +442,7 @@ void tree_unsupervise(stralloc *live, char const *tree, char const *treename,uid
if (wstat) log_warnusys("stop services") ;
}
follow:
if (db_find_compiled_state(livetree.s,treename) >=0)
{
list.len = 0 ;
......
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