tkuester / taky

A simple python TAK server
MIT License
188 stars 43 forks source link

taky_dps should be able to run without a config file #15

Closed tkuester closed 3 years ago

tkuester commented 3 years ago

@dbussert raises an excellent point:

[...] I'm a bit confused that taky runs with no config (which is cool, makes it easy to default everything) [...] I think that's useful, I guess it was just a bit jarring that one worked with no config, but not the other.

The application should not bring confusing surprises to the user.

One difficulty on this is deciding where to place the uploaded files. I think for now, I will place them in /tmp/taky-$(hostname) for simplicity's sake.

tkuester commented 3 years ago

Finally got around to this... it won't quite work out as easily as the COT server, but it's on the way.

The issue is that I want the configuration file to default to /var/taky/dp-user, and there's no guarantee that directory exists. So the new behavior is that if a config file is not present, the DPS will run happily by itself so long as that directory exists. If it does not, the server will error out and refuse to run.