home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   linux.debian.bugs.dist      Ohh some weird Debian bug report thing      28,835 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 28,408 of 28,835   
   Andrew Bower to All   
   Bug#1128585: socklog-run: under systemd,   
   21 Feb 26 17:10:01   
   
   From: andrew@bower.uk   
      
   --gfcqZznmszSuMmj8   
   Content-Type: text/plain; charset=us-ascii   
   Content-Disposition: inline   
   Content-Transfer-Encoding: quoted-printable   
      
   Package: socklog-run   
   Version: 2.1.0+repack-6   
   Severity: normal   
   Tags: patch   
      
   Dear Maintainer,   
      
   When run under systemd and runit-run, the socklog-unix service listens   
   to /dev/log, which means that syslog traffic is stolen from journald and   
   any logs made to journald directly (possibly quite important to see if   
   they have been registered directly by systemd) do not appear in socklog   
   logs.   
      
   This can be fixed quite easily by listening to journald's syslog proxy   
   socket when it is running. See patch below for a tested solution.   
      
   To test:   
      
     # printf "MESSAGE=hello123\n" | logger --journald   
      
   On sucessful test:   
      
     # tail /var/log/runit/socklog/user/current                 
     2026-02-21_15:38:12.61211 user.info: Feb 21 15:38:12 logger[7649]: hello123   
      
   Thanks!   
      
   -- System Information:   
   Debian Release: 13.3   
     APT prefers stable-updates   
     APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,   
   'proposed-updates'), (500, 'stable')   
   Architecture: amd64 (x86_64)   
      
   Kernel: Linux 6.12.57+deb13-cloud-amd64 (SMP w/1 CPU thread; PREEMPT)   
   Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set   
   Shell: /bin/sh linked to /usr/bin/dash   
   Init: systemd (via /run/systemd/system)   
   LSM: AppArmor: enabled   
      
   Versions of packages socklog-run depends on:   
   ii  runit                       2.2.0-3   
   ii  runit-helper                2.16.4   
   ii  socklog                     2.1.0+repack-6   
   ii  systemd [systemd-sysusers]  257.9-1~deb13u1   
      
   Versions of packages socklog-run recommends:   
   ii  bsd-mailx [mailx]  8.1.2-0.20220412cvs-1.1   
   ii  ipsvd              1.0.0-12   
      
   socklog-run suggests no packages.   
      
      
   diff --git a/debian/service/socklog-unix/run b/debian/service/socklog-unix/run   
   index d98e29d..b3e8a66 100755   
   --- a/debian/service/socklog-unix/run   
   +++ b/debian/service/socklog-unix/run   
   @@ -1,3 +1,8 @@   
    #!/bin/sh   
    exec 2>&1   
   -exec chpst -U _socklog-unix socklog unix /dev/log   
   +   
   +if [ "$(readlink /dev/log)" = "/run/systemd/journal/dev-log" ]; then   
   +  socket=/run/systemd/journal/syslog   
   +fi   
   +   
   +exec chpst -U _socklog-unix socklog unix "${socket:-/dev/log}"   
      
   --gfcqZznmszSuMmj8   
   Content-Type: text/plain; charset=us-ascii   
   Content-Disposition: attachment; filename=run   
      
   #!/bin/sh   
   exec 2>&1   
      
   if [ "$(readlink /dev/log)" = "/run/systemd/journal/dev-log" ]; then   
     socket=/run/systemd/journal/syslog   
   fi   
      
   exec chpst -U _socklog-unix socklog unix "${socket:-/dev/log}"   
      
   --gfcqZznmszSuMmj8--   
      
   -----BEGIN PGP SIGNATURE-----   
      
   iQIzBAABCgAdFiEEMKYZL6LI55lncG11uqgO2W94h+kFAmmZ1f0ACgkQuqgO2W94   
   h+nCZg//fatRXGjgrUJoSRjDV4sjIWORHSLukCBpKVmtdLeVgJu04YidN6b5FLVv   
   0WzsM+x2OZHNI3j88mfBpAro8SH2LhD1TSKhPY6kE7wpi2JhxacDS+1aaU8E34uq   
   1NAEbH2uxx9nu6AN5B2ibjFWdfQ1OLcOillBiztjd8k1x1Xpedy0y/OStD7ucmZ0   
   5gTmZ0wEAv0hh+APcfhDU2QsEQLWukXHDv0sOQ8+Ip3pWGP0RS+vvmE2IZEjzy3R   
   3ngkjIyLMyfByCEAsv4pKvAZyGZiu3zwkCeLovV/qv02RSC0Z8jIWgnOJ8Eg+kKa   
   rUroMD/5RrowGVBGCl42yAE7+s7RXJn8nmKdXH3jXygGjIMqhbPKXAcoaniBKgi6   
   VSrWNwxETA0qm0aK6qiWoJXXV6Py+aPwb7fbktJRB1qpAQ5Ps2DzlC7NrFAkNiDh   
   5L3Rg+nYbexpLbxsh/KvFPRr298aTU6omPbl8xEUHDigETNsMZVfwJDddcOcJeY5   
   zgutXUjDFm29KsjkCgQ0V8rrqo5Rg15Tyu9kVzIm4P+ZXLWYyBwFiS7xvqIBXqR6   
   StCY3xtzqy9f4s//xf1ekbMK9mamez5bMqgKcVZUqKMXPb/CY4sx19uxNHRhUUXw   
   UIzcBnSbtEu+RBidvhtEkiTHVhUj4A1vyGiHDThach92zECknV0=   
   =xLfb   
   -----END PGP SIGNATURE-----   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca