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

do not stop service within boot group

parent 5e9df483
No related branches found
No related tags found
No related merge requests found
......@@ -207,9 +207,18 @@ int ssexec_remove(int argc, char const *const *argv, ssexec_t *info)
if (!state_read(&ste, &res))
log_dieusys(LOG_EXIT_SYS, "read state file of: ", argv[pos], " -- please make a bug report") ;
if (ste.issupervised == STATE_FLAGS_TRUE)
if (!sastr_add_string(&sa, argv[pos]))
log_dieusys(LOG_EXIT_SYS, "add service: ", argv[pos], " to selection") ;
if (ste.issupervised == STATE_FLAGS_TRUE) {
/** services of group boot cannot be stopped, the changes will appear only at
* next reboot.*/
r = tree_ongroups(res.sa.s + res.path.home, res.sa.s + res.treename, TREE_GROUPS_BOOT) ;
if (r < 0)
log_dieu(LOG_EXIT_SYS, "get groups of service: ", argv[pos]) ;
if (!r)
if (!sastr_add_string(&sa, argv[pos]))
log_dieusys(LOG_EXIT_SYS, "add service: ", argv[pos], " to selection") ;
}
ares[areslen++] = 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