Skip to content

ctl: status: added options: version, workers, configure

Libor Peltan requested to merge ctl_status_augment into master

...to display either real Knot running version, numbers of workers, or configure options

peltan@peltan:~/master_knot/src$ ./knotc -s ~/knot.sock status
Running
peltan@peltan:~/master_knot/src$ ./knotc -s ~/knot.sock status version
Version: 2.5.0-dev
Running
peltan@peltan:~/master_knot/src$ ./knotc -s ~/knot.sock status workers
UDP workers: 4, TCP workers 10, background workers: 4
Running
peltan@peltan:~/master_knot/src$ ./knotc -s ~/knot.sock status configure

  knot 2.5.0-dev

    Target:   linux-gnu x86_64
    Compiler: clang
    CFLAGS:   -g -O0 -Wall -Werror=format-security -Werror=implicit -Wstrict-prototypes 
    LIBS:     -lcap-ng -ldl -lpthread -lm  
    LibURCU:  -lurcu 
    GnuTLS:   -lgnutls -lnettle -I/usr/include/p11-kit-1
    Jansson:  -ljansson 
    Libedit:  -ledit -ltinfo -lbsd -I/usr/include/editline
    LMDB:     embedded  -I$(srcdir)/contrib/lmdb

    Sanitizer: 
    LibFuzzer: no

    Prefix:      NONE
    Run dir:     ${prefix}/var/run/knot
    Storage dir: ${prefix}/var/lib/knot
    Config dir:  ${prefix}/etc/knot

    Configuration DB mapsize: 500 MiB
    Timers DB mapsize:        100 MiB

    Knot DNS libraries:     yes
    Knot DNS daemon:        yes
    Knot DNS utils:         yes
    Knot DNS documentation: yes

    Use recvmmsg:        yes
    Use SO_REUSEPORT:    yes
    Fast zone parser:    no
    Utilities with IDN:  yes
    Systemd integration: yes
    Dnstap support:      no
    Code coverage:       no
    Bash completions:    no
    PKCS #11 support:    yes

Running
peltan@peltan:~/master_knot/src$ 

Fixes #507 (closed)

Merge request reports