socklog-conf(8)
β¨ socklog-conf(8) β¨
okay bestie, gather round, because this is the socklog-conf page from the System Manager's Manual and she is literally the setup queen π
π NAME π
socklog-conf β sets up a socklog(8) service.
no cap, that's the whole job. she sets things up. she makes directories. she gives you a whole supervised log vibe. iconic.
πΈ SYNOPSIS πΈ
socklog-conf unix|inet|klog|ucspi-tcp acct logacct
socklog-conf notify acct grp
that's it. two shapes. pick your fighter β¨
π DESCRIPTION π
so here's the tea π β socklog-conf creates /etc/sv if it isn't already there (she's prepared like that), plus a subdirectory that runs the unix, inet, ucspi-tcp or notify service (peep below for each one, i gotchu).
with one exception β the notify service β socklog-conf also makes a log directory with subdirectories inside it. so most of these services get the full log-dir treatment, and notify is just out here living her own life π
β οΈ real talk:acct,logacctandgrpmust not contain any special characters. keep them clean, bestie.
π UNIX SERVICE π
socklog-conf unix acct logacct
run her with unix as the 1st argument and she creates the service directory /etc/sv/socklog-unix and the log directory /var/log/socklog π
then she arranges for socklog(8) to run under the uid and gid of acct, and to listen for syslog messages on /dev/log. yes, the classic spot. the local plug. π
she also creates automatically rotated log directories in /var/log/socklog. those logs are owned by logacct, and the corresponding svlogd(8) process runs under the uid and gid of logacct. everyone's got their own identity, as they should π
want her in system-wide service supervision? say less, use the update-service(8) program:
update-service --add /etc/sv/socklog-unix
periodt.
π INET SERVICE π
socklog-conf inet acct logacct
1st argument inet? she creates the service directory /etc/sv/socklog-inet and the log directory /var/log/socklog-inet β¨
socklog(8) runs under the uid and gid of acct, and listens for syslog messages on the UDP socket 0.0.0.0:514. network girlie behavior, we love to see it π¦
automatically rotated log directories get made in /var/log/socklog-inet, the logs are owned by logacct, and the matching svlogd(8) process runs under the uid and gid of logacct.
to add her to system-wide service supervision:
update-service --add /etc/sv/socklog-inet
slay.
π KLOG SERVICE π
socklog-conf klog acct logacct
1st argument klog and boom β service directory /etc/sv/socklog-klog plus log directory /var/log/socklog-klog πΈ
this one's the kernel gossip channel, fr fr. socklog(8) runs under the uid and gid of acct and reads kernel messages from /proc/kmsg on Linux, or /dev/socklog-klog on BSD. two paths, one vibe, depending on your OS π
automatically rotated log directories land in /var/log/socklog-klog, logs owned by logacct, and the corresponding svlogd(8) process runs under the uid and gid of logacct.
system-wide service supervision time:
update-service --add /etc/sv/socklog-klog
no notes. perfect. π
π¦ UCSPI-TCP SERVICE π¦
socklog-conf ucspi-tcp acct logacct
1st argument ucspi-tcp β service directory /etc/sv/socklog-ucspi-tcp and log directory /var/log/socklog-ucspi-tcp β¨
this one is a lil extra (affectionate): she arranges for tcpsvd(1) to run socklog(8) under the uid and gid of acct, and to listen on the TCP socket 0.0.0.0:10116. TCP! port 10116! main character energy π₯
automatically rotated log directories in /var/log/socklog-ucspi-tcp, logs owned by logacct, and the corresponding svlogd(8) process runs under the uid and gid of logacct.
add her to system-wide service supervision with:
update-service --add /etc/sv/socklog-ucspi-tcp
obsessed.
π NOTIFY SERVICE π
socklog-conf notify acct grp
1st argument notify and she creates the service directory /etc/sv/socklog-notify. note: no log directory for this one, remember? told you she was different π«Ά
she arranges for uncat(1) to run under the uid and gid of acct, and to listen on the named pipe /var/log/socklog/.notify. that named pipe gets mode 0620, the uid of acct, and the gid of grp π
β οΈ important one, bestie: all uids running a log service that is configured to push log events to thesocklog-notifyservice must be members of the groupgrp. no group membership, no notify. that's the rule.
system-wide service supervision:
update-service --add /etc/sv/socklog-notify
chef's kiss πβ¨
π SEE ALSO π
and the links, because i would never gatekeep:
ποΈ AUTHOR ποΈ
Gerrit Pape <pape@smarden.org>
and that's the whole page, bestie π§π this was the socklog-conf(8) manual page, straight out of the System Manager's Manual β go forth and supervise your services with your whole chest. bye babe, ilysm πβ¨π
π¦ where this page comes from
- ubuntu resolute: socklog 2.1.2+repack-1 Β· BSD-3-Clause
- ubuntu stonking: socklog 2.1.2+repack-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms