mirror of
https://github.com/samba-team/samba.git
synced 2025-06-19 23:17:05 +03:00
loadparm: add convenience wrapper lp_kill_all_services()
Michael
This commit is contained in:
parent
05eda12525
commit
32bfd131e3
@ -7744,6 +7744,14 @@ void lp_killunused(bool (*snumused) (int))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Kill all except autoloaded and usershare services - convenience wrapper
|
||||||
|
*/
|
||||||
|
void lp_kill_all_services(void)
|
||||||
|
{
|
||||||
|
lp_killunused(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
Unload a service.
|
Unload a service.
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
@ -475,7 +475,7 @@ static int save_reload(int snum)
|
|||||||
lp_dump_one(f, False, snum);
|
lp_dump_one(f, False, snum);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
lp_killunused(NULL);
|
lp_kill_all_services();
|
||||||
|
|
||||||
if (!load_config(False)) {
|
if (!load_config(False)) {
|
||||||
printf(_("Can't reload %s"), get_dyn_CONFIGFILE());
|
printf(_("Can't reload %s"), get_dyn_CONFIGFILE());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user