fix(serve): reject a config reload whose validation exits instead of stopping the server

This commit is contained in:
imSp4rky
2026-11-28 16:03:35 -07:00
parent ab338e4a3c
commit ed743a81b9
3 changed files with 25 additions and 8 deletions
+8 -6
View File
@@ -188,12 +188,14 @@ list.
the whole file again, globs the device directories again, and swaps in the new `users`,
`tiers`, `services` and device lists in one step. Open CDM sessions and remote sessions
continue; an API key you removed gets `401` on its next request. A file that does not parse
or validate keeps the running settings and logs the reason. A change to `remote_only`,
`services_refresh_interval`, the first PlayReady device, a `dashboard.key` on a server that
started without one, or any command-line flag needs a restart, and the log says so. A reload
that removes `dashboard.key` closes the dashboard: its routes answer `404` and an open
`/api/dashboard/events` connection ends. A new `global_speed_limit` applies to jobs that start after the
reload; running jobs keep their share. Windows has no `SIGHUP`: restart the server there.
or validate keeps the running settings and logs the reason. Each download job starts in a
new process that reads the file on disk, so a job fails until you correct a rejected file.
A change to `remote_only`, `services_refresh_interval`, the first PlayReady device, a
`dashboard.key` on a server that started without one, or any command-line flag needs a
restart, and the log says so. A reload that removes `dashboard.key` closes the dashboard: its
routes answer `404` and an open `/api/dashboard/events` connection ends. A new
`global_speed_limit` applies to jobs that start after the reload; running jobs keep their share. Windows has no `SIGHUP`: restart the server there.
`server_cdm` decides whether the server runs the CDM licensing for that API key. Set it to
`true` to enable every service, or to a list of service tags to enable only those. It is `false`