warn that reload doesn't do global-options

This commit is contained in:
ed 2026-02-25 15:27:03 +00:00
parent ecdfd2d1ab
commit a29037a0e2

View file

@ -1439,7 +1439,7 @@ class SvcHub(object):
self.log("root", "ssdp startup failed;\n" + min_ex(), 3) self.log("root", "ssdp startup failed;\n" + min_ex(), 3)
def reload(self, rescan_all_vols: bool, up2k: bool) -> str: def reload(self, rescan_all_vols: bool, up2k: bool) -> str:
t = "config has been reloaded" t = "users, volumes, and volflags have been reloaded"
with self.reload_mutex: with self.reload_mutex:
self.log("root", "reloading config") self.log("root", "reloading config")
self.asrv.reload(9 if up2k else 4) self.asrv.reload(9 if up2k else 4)
@ -1449,6 +1449,7 @@ class SvcHub(object):
t += "; volumes are now reinitializing" t += "; volumes are now reinitializing"
else: else:
self.log("root", "reload done") self.log("root", "reload done")
t += "\n\nchanges to global options (if any) require a restart of copyparty to take effect"
self.broker.reload() self.broker.reload()
return t return t