S6-SVDT(8)

NAME
s6-svdt - print the recorded death tally of a service, i.e. a list of the times the process died, with the cause of death

SYNOPSIS
s6-svdt [-S | -s] [-n maxlines] servicedir

DESCRIPTION
s6-svdt prints the contents of the recorded death tally of the service being currently supervised at the servicedir s6-service-directory(7), then exits 0.

For each recorded death, s6-svdt prints one line. This line contains the following fields, separated with spaces:

•   A TAI64N[1] timestamp.

•   The word ‘signal’ if the death was caused by a signal, or the word ‘exitcode’ if the death was a normal exit.

•   The name of the signal that caused the death, or the exit code of the process.

To obtain human-readable local time or GMT time instead of TAI64N timestamps, simply pipe s6-svdt' s output into s6-tai64nlocal(8).

Process deaths are recorded up to a default maximum of 100. This default can be modified via the max-death-tally file in the s6-service-directory(7).

OPTIONS

-S  Print signal names. This is the default.

-s  Print signal numbers. The numerical value of the signal will be printed instead of the signal name.

-n maxlines
    Limit the output to at most the latest maxlines deaths.

EXIT STATUS

0   Success.

100 Wrong usage.

111 System call failed.

SEE ALSO
s6-notifyoncheck(8), s6-permafailon(8), s6-supervise(8), s6-svc(8), s6-svdt-clear(8), s6-svlisten(8), s6-svlisten1(8), s6-svok(8), s6-svscan(8), s6-svscanctl(8), s6-svstat(8), s6-svwait(8)

[1] https://cr.yp.to/daemontools/tai64n.html

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-svdt.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)