Bug#1023476: runit: Improve default-syslog check

2022-11-25 Thread Lorenzo
On Wed, 23 Nov 2022 18:42:19 +0100 Andras Korn wrote: > How about you make default-syslog/check use socklog-check or > unixclient if they are available, and fall back to the current > heuristics if not? Something like this: > > #!/bin/sh > > # note: only socklog exists as runit service in

Bug#1023476: runit: Improve default-syslog check

2022-11-23 Thread Andras Korn
On Wed, Nov 16, 2022 at 02:03:14PM +0100, Lorenzo wrote: > > > lsof /dev/log >/dev/null || exit 1 > > > > I think > > > > fuser /dev/log >/dev/null 2>/dev/null || exit 1 > > > > is more efficient, but there is a problem with both approaches: the process > > that is listening on /dev/null may

Bug#1023476: runit: Improve default-syslog check

2022-11-16 Thread Lorenzo
Hi, On Mon, 7 Nov 2022 09:39:18 +0100 Andras Korn wrote: > Hi, > > > the check could be just something like > > > > lsof /dev/log >/dev/null || exit 1 > > I think > > fuser /dev/log >/dev/null 2>/dev/null || exit 1 > > is more efficient, but there is a problem with both approaches: the >

Bug#1023476: runit: Improve default-syslog check

2022-11-07 Thread Andras Korn
Hi, > the check could be just something like > > lsof /dev/log >/dev/null || exit 1 I think fuser /dev/log >/dev/null 2>/dev/null || exit 1 is more efficient, but there is a problem with both approaches: the process that is listening on /dev/null may be invisible to us, because it may be

Bug#1023476: runit: Improve default-syslog check

2022-11-04 Thread Lorenzo Puliti
Package: runit Version: 2.1.2-50 Severity: normal X-Debbugs-Cc: plore...@disroot.org >From #1022837 > 2. a default-syslog service is created by something, and all it does on my > systems is sleep indefinitely (I use socklog as my syslogd, but have > my own service directory for that as well, and