use xsv-style subcommands like "moonfire-nvr run"

This makes it easier to understand which options are valid with each
command.

Additionally, there's more separation of implementations. The most
obvious consequence is that "moonfire-nvr ts ..." no longer uselessly
locks/opens a database.
This commit is contained in:
Scott Lamb
2017-01-16 12:50:47 -08:00
parent a6ec68027a
commit 3af9aeee96
9 changed files with 380 additions and 154 deletions

View File

@@ -268,7 +268,7 @@ been done for you. If not, Create
After=network-online.target
[Service]
ExecStart=/usr/local/bin/moonfire-nvr \
ExecStart=/usr/local/bin/moonfire-nvr run \
--sample-file-dir=/var/lib/moonfire-nvr/sample \
--db-dir=/var/lib/moonfire-nvr/db \
--http-addr=0.0.0.0:8080