chime-experiment / dias

A data integrity framework
https://dias.readthedocs.io/
GNU General Public License v3.0
2 stars 0 forks source link

dias should refuse to start on missing directory #179

Closed ketiltrout closed 3 years ago

ketiltrout commented 3 years ago

dias should fail to start if any of these directories defined in dias.conf are missing on start-up:

archive_data_dir: "/mnt/gong/archive"
staging_data_dir: "/mnt/gong/staging"
task_write_dir: "/mnt/gong/dias/data"
task_state_dir: "/mnt/gong/dias/state"

It should not be creating them if they don't exist: that's a task for the installer. As it stands now, when /mnt/gong is not mounted, dias creates a shadow /mnt/gong/dias tree which is only going to make things worse.