mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
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.