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

remove module service directory with -R option

parent 5dd40bd2
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,15 @@ int svc_remove(genalloc *tostop,ss_resolve_t *res, char const *src,ssexec_t *inf
log_trace("Delete logger directory of: ",name) ;
if (rm_rf(str + pres->dstlog) == -1)
log_warnusys("remove logger directory of: ",name) ;
if (pres->type == TYPE_MODULE) {
// remove service source file
log_trace("Delete service file of: ",name) ;
if (rm_rf(str + pres->src) == -1)
log_warnusys("remove configuration file of: ",name) ;
}
}
log_trace("Delete resolve file of: ",name) ;
......
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