• Bug#1102482: runit-services: rsyslog logrotate workaround not set up on

    From Andrew Bower@21:1/5 to All on Wed Apr 9 15:40:02 2025
    Package: runit-services
    Version: 0.9.0
    Severity: normal
    X-Debbugs-Cc: andrew@bower.uk

    Dear Maintainer,

    I upgraded a minimal VM from stable to testing and the workaround for
    the broken rsyslog log rotation did not get installed:

    $ ls -l /etc/service/
    total 0
    lrwxrwxrwx 1 root root 12 Apr 20 2024 cron -> /etc/sv/cron
    lrwxrwxrwx 1 root root 22 Apr 20 2024 default-syslog -> /etc/sv/default-syslog lrwxrwxrwx 1 root root 22 Jul 25 2021 getty-tty1 -> ../../../sv/getty-tty1 lrwxrwxrwx 1 root root 18 Apr 20 2024 getty-tty2 -> /etc/sv/getty-tty2 lrwxrwxrwx 1 root root 18 Apr 20 2024 getty-tty3 -> /etc/sv/getty-tty3 lrwxrwxrwx 1 root root 18 Apr 20 2024 getty-tty4 -> /etc/sv/getty-tty4 lrwxrwxrwx 1 root root 18 Apr 20 2024 getty-tty5 -> /etc/sv/getty-tty5 lrwxrwxrwx 1 root root 18 Apr 20 2024 getty-tty6 -> /etc/sv/getty-tty6 lrwxrwxrwx 1 root root 19 Apr 20 2024 getty-ttyS0 -> /etc/sv/getty-ttyS0 lrwxrwxrwx 1 root root 33 Mar 30 23:50 lldpd -> /usr/share/runit/sv.current/lldpd
    lrwxrwxrwx 1 root root 15 Apr 20 2024 rsyslog -> /etc/sv/rsyslog
    lrwxrwxrwx 1 root root 14 Oct 8 2024 slapd -> /etc/sv/slapd/
    lrwxrwxrwx 1 root root 11 Sep 21 2021 ssh -> /etc/sv/ssh

    $ ls -l /etc/logrotate.d
    total 32
    -rw-r--r-- 1 root root 120 Jan 30 2021 alternatives
    -rw-r--r-- 1 root root 173 Jun 10 2021 apt
    -rw-r--r-- 1 root root 130 Oct 14 2019 btmp
    -rw-r--r-- 1 root root 112 Jan 30 2021 dpkg
    -rw-r--r-- 1 root root 128 Jun 17 2024 exim4-base
    -rw-r--r-- 1 root root 108 Jun 17 2024 exim4-paniclog
    -rw-r--r-- 1 root root 248 Feb 23 2023 rsyslog
    -rw-r--r-- 1 root root 147 Mar 31 00:36 wtmp

    'cpsv a rsyslog' does not fix the issue.

    The initial upgrade was from 0.5.5~deb12u2 to 0.8.2

    Thanks!


    -- System Information:
    Distributor ID: Devuan
    Description: Devuan GNU/Linux 6 (excalibur/ceres)
    Release: 6
    Codename: excalibur ceres
    Architecture: x86_64

    Kernel: Linux 6.12.20-amd64 (SMP w/1 CPU thread; PREEMPT)
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: runit (via /run/runit.stopit)
    LSM: AppArmor: enabled

    Versions of packages runit-services depends on:
    ii runit 2.2.0-2
    ii runit-helper 2.16.4

    Versions of packages runit-services recommends:
    ii runit-init 2.2.0-2

    Versions of packages runit-services suggests:
    pn socklog <none>
    pn xchpst <none>

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorenzo@21:1/5 to Andrew Bower on Wed Apr 9 16:50:01 2025
    Control: tags -1 patch

    Hi Andrew,
    thanks for testing and reporting

    On Wed, 09 Apr 2025 14:30:53 +0100
    Andrew Bower <andrew@bower.uk> wrote:

    Package: runit-services
    Version: 0.9.0
    Severity: normal
    X-Debbugs-Cc: andrew@bower.uk

    Dear Maintainer,

    I upgraded a minimal VM from stable to testing and the workaround for
    the broken rsyslog log rotation did not get installed:

    mmm, best guess is that the trigger is not activated because rsyslog is
    already installed in the system..

    so the logic to deploy our logrotate snippet needs to be both in
    postinst's triggered) and configure) ?
    (right now is only in triggered)

    I just pushed a patch to git, next branch.. any chance that you can
    test if it fixes the issue for you?

    next branch tip https://salsa.debian.org/debian/runit-services/-/tree/next?ref_type=heads
    patch https://salsa.debian.org/debian/runit-services/-/commit/854b0381dd09d36f9cc5977ce2a88245c9e2cbdc


    Best,
    Lorenzo


    $ ls -l /etc/service/
    total 0
    lrwxrwxrwx 1 root root 12 Apr 20 2024 cron -> /etc/sv/cron
    lrwxrwxrwx 1 root root 22 Apr 20 2024 default-syslog -> /etc/sv/default-syslog lrwxrwxrwx 1 root root 22 Jul 25 2021
    getty-tty1 -> ../../../sv/getty-tty1 lrwxrwxrwx 1 root root 18 Apr 20
    2024 getty-tty2 -> /etc/sv/getty-tty2 lrwxrwxrwx 1 root root 18 Apr
    20 2024 getty-tty3 -> /etc/sv/getty-tty3 lrwxrwxrwx 1 root root 18
    Apr 20 2024 getty-tty4 -> /etc/sv/getty-tty4 lrwxrwxrwx 1 root root
    18 Apr 20 2024 getty-tty5 -> /etc/sv/getty-tty5 lrwxrwxrwx 1 root
    root 18 Apr 20 2024 getty-tty6 -> /etc/sv/getty-tty6 lrwxrwxrwx 1
    root root 19 Apr 20 2024 getty-ttyS0 -> /etc/sv/getty-ttyS0
    lrwxrwxrwx 1 root root 33 Mar 30 23:50 lldpd -> /usr/share/runit/sv.current/lldpd lrwxrwxrwx 1 root root 15 Apr 20
    2024 rsyslog -> /etc/sv/rsyslog lrwxrwxrwx 1 root root 14 Oct 8
    2024 slapd -> /etc/sv/slapd/ lrwxrwxrwx 1 root root 11 Sep 21 2021
    ssh -> /etc/sv/ssh

    $ ls -l /etc/logrotate.d
    total 32
    -rw-r--r-- 1 root root 120 Jan 30 2021 alternatives
    -rw-r--r-- 1 root root 173 Jun 10 2021 apt
    -rw-r--r-- 1 root root 130 Oct 14 2019 btmp
    -rw-r--r-- 1 root root 112 Jan 30 2021 dpkg
    -rw-r--r-- 1 root root 128 Jun 17 2024 exim4-base
    -rw-r--r-- 1 root root 108 Jun 17 2024 exim4-paniclog
    -rw-r--r-- 1 root root 248 Feb 23 2023 rsyslog
    -rw-r--r-- 1 root root 147 Mar 31 00:36 wtmp

    'cpsv a rsyslog' does not fix the issue.

    The initial upgrade was from 0.5.5~deb12u2 to 0.8.2

    Thanks!


    -- System Information:
    Distributor ID: Devuan
    Description: Devuan GNU/Linux 6 (excalibur/ceres)
    Release: 6
    Codename: excalibur ceres
    Architecture: x86_64

    Kernel: Linux 6.12.20-amd64 (SMP w/1 CPU thread; PREEMPT)
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
    LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash
    Init: runit (via /run/runit.stopit)
    LSM: AppArmor: enabled

    Versions of packages runit-services depends on:
    ii runit 2.2.0-2
    ii runit-helper 2.16.4

    Versions of packages runit-services recommends:
    ii runit-init 2.2.0-2

    Versions of packages runit-services suggests:
    pn socklog <none>
    pn xchpst <none>

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Bower@21:1/5 to Lorenzo on Wed Apr 9 20:00:01 2025
    Hi Lorenzo,

    On Wed, Apr 09, 2025 at 04:41:52PM +0200, Lorenzo wrote:
    I just pushed a patch to git, next branch.. any chance that you can
    test if it fixes the issue for you?

    I just re-did the distro upgrade with a build of runit-services/0.9.1
    and it worked smoothly, thanks!

    Andrew

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)