diff --git a/source/param/loadparm.c b/source/param/loadparm.c index f1bac54251a..f02607f8759 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -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. ***************************************************************************/ diff --git a/source/web/swat.c b/source/web/swat.c index 2cf0eabeedd..bb418db04bf 100644 --- a/source/web/swat.c +++ b/source/web/swat.c @@ -475,7 +475,7 @@ static int save_reload(int snum) lp_dump_one(f, False, snum); fclose(f); - lp_killunused(NULL); + lp_kill_all_services(); if (!load_config(False)) { printf(_("Can't reload %s"), get_dyn_CONFIGFILE());