git: dsynth - add 'dsynth monitor' directive

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Sep 26 14:40:29 PDT 2019


commit aac7a6d92f54bcdb2a5d0795fc77d1c9fdae2fb1
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Sep 26 14:10:54 2019 -0700

    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.

Summary of changes:
 usr.bin/dsynth/build.c    |   4 +-
 usr.bin/dsynth/config.c   |  10 +++
 usr.bin/dsynth/dsynth.c   |  14 ++++
 usr.bin/dsynth/dsynth.h   |  24 +++++-
 usr.bin/dsynth/html.c     |   2 +-
 usr.bin/dsynth/monitor.c  | 193 +++++++++++++++++++++++++++++++++++++++++++++-
 usr.bin/dsynth/ncurses.c  | 155 +++++++------------------------------
 usr.bin/dsynth/runstats.c |   6 +-
 usr.bin/dsynth/subs.c     |  94 ++++++++++++++++++++++
 9 files changed, 365 insertions(+), 137 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aac7a6d92f54bcdb2a5d0795fc77d1c9fdae2fb1


-- 
DragonFly BSD source repository


More information about the Commits mailing list