hvxl / otmonitor

Monitor tool for the OTGW (http://otgw.tclcode.com/)
GNU Lesser General Public License v3.0
27 stars 10 forks source link

Add --dbfile command line argument #5

Closed SenH closed 5 years ago

SenH commented 5 years ago

This patch adds an option to specify the path to the SQLite file. I have 2 boilers with 2 otmonitor daemons running and the auth.db was getting used by both daemons. Also my daemon user is an account without a home dir which the current logic did not seem to find a writable dir for.

for example in a systemd service file: --dbfile /var/lib/otmonitor/auth-%i.db

hvxl commented 5 years ago

I don't expect your changes address a problem that many people encounter. But they don't hurt, so I'm happy to adopt them.