dsynth - add 'dsynth monitor' directive
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 26 Sep 2019 21:10:54 +0000 (14:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 26 Sep 2019 21:40:24 +0000 (14:40 -0700)
commitaac7a6d92f54bcdb2a5d0795fc77d1c9fdae2fb1
tree15c3bb8fba1ca37b360ce6ee6e91d0b758ffe6d8
parentd19ab22d6e424786b9f5e2555381fe329833f9f8
dsynth - add 'dsynth monitor' directive

* Create a statistics monitoring file in LOGS/stats/monitor.dat and a
  lock file in LOGS/stats/monitor.lk that can be used to test whether
  dsynth is running or not.

* Add 'dsynth monitor', a front-end which monitors a dsynth already
  running in the background.  Any number of monitors can be in
  operation and killing the monitor has no effect on the running dsynth.

  If no additional argument is given the directive locates the
  monitor.dat file via the configuration (LOGS/stats/monitor.dat).

  You may specify a specific monitor.dat file if desired but note
  that if you do so logs will not be available and the monitor will
  also not be able to detect if dsynth is not running or when dsynth
  exits.

* Reorganize a few things so we can use the ncurses code for both
  the ncurses display feature and the monitor feature.

* Compartmentalize the log line reading code.
usr.bin/dsynth/build.c
usr.bin/dsynth/config.c
usr.bin/dsynth/dsynth.c
usr.bin/dsynth/dsynth.h
usr.bin/dsynth/html.c
usr.bin/dsynth/monitor.c
usr.bin/dsynth/ncurses.c
usr.bin/dsynth/runstats.c
usr.bin/dsynth/subs.c