Files
ctrld/cmd/cli
Cuong Manh Le 64bcd2f00d cmd/cli: validate remote config during "ctrld start"
On BSD, the service is made un-killable since v1.3.4 by using daemon
command "-r" option. However, when reading remote config, the ctrld will
fatally exit if the config is malformed. This causes daemon respawn new
ctrld process immediately, causing the "ctrld start" command hang
forever because of restart loop.

Since "ctrld start" already fetch the resolver config for validating
uid, it should validate the remote config, too. This allows better error
message printed to users, let them know that the config is invalid.

Further, if the remote config was invalid, we should disregard it and
generating the default working one in cd mode.
2024-03-22 16:07:45 +07:00
..
2024-01-22 23:12:17 +07:00
2024-02-07 14:58:38 +07:00
2024-01-22 23:12:17 +07:00
2023-11-06 20:01:03 +07:00
2024-03-22 16:05:49 +07:00
2024-01-22 23:12:17 +07:00
2023-11-06 20:01:03 +07:00