mirror of
https://github.com/9001/copyparty.git
synced 2026-04-01 21:13:26 +10:00
warn that reload doesn't do global-options
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user