---
name: "socklog-check"
section: "8"
platform: "linux"
package: "socklog"
version: "2.1.0+repack-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/socklog-check"
---

# socklog-check(8)

checks for the availability of a socklog(8) service.

## NAME

socklog-check - checks for the availability of a [socklog(8)](/socklog/8.md) service.

## SYNOPSIS

**socklog-check** \[-v\] \[unix \[*address\]\]*

## DESCRIPTION

**socklog-check** attempts to connect to a [**socklog**(8)](/socklog/8.md) unix service and reports whether the connection attempt succeeded or not.

It connects to the datagram oriented unix domain socket *address*, and reports success through the return code. If *address* is not specified, **socklog-check** attempts to connect to */dev/log*.

When running services that use the syslog facility under runit's service supervision, **socklog-check** should be added to the top of the service's run script to ensure that no syslog messages are generated until a syslog service is up and running to process the messages, e.g.:

 \#!/bin/sh\
  socklog-check \|\| exit 1\
  exec service\_using\_syslog

## OPTIONS

- **-v**

  verbose. Print verbose message to standard error.

## EXIT CODES

On success **socklog-check** returns 0.

On error, **socklog-check** prints a message to standard error and exits 111.

## SEE ALSO

[socklog(8)](/socklog/8.md), [socklog-conf(8)](/socklog-conf/8.md), [svlogd(8)](/svlogd/8.md), [tryto(1)](/tryto/1.md), [uncat(1)](/uncat/1.md), [sv(8)](/sv/8.md), [runsv(8)](/runsv/8.md), [runsvdir(8)](/runsvdir/8.md)

 http://smarden.org/socklog/\
  http://smarden.org/runit/

## AUTHOR

Gerrit Pape \<pape@smarden.org\>
