Package: runit
Version: 2.1.2-34
Followup-For: Bug #933078

>> `kill -14 1`
>
> Fire-and-forget -- yes.

I'm doing some live testing on my box before sending a refreshed patch
to init-system-helpers maintainers: sadly this is not working as I expect.

I've added a runit-force-rescan sub to update-rc.d

sub runit_force_rescan {
    if (-f "/run/runit.stopit") {
        system("kill", "-14", "1");
        system("sleep", "1.5");
    }
}

and without the `sleep 1.5` i'm still running into
an error on postinst stage (example with openssh-server)

Unpacking openssh-server (1:8.0p1-6) ...
Setting up openssh-server (1:8.0p1-6) ...
insserv: Script rsync has overlapping Default-Start and Default-Stop runlevels 
(2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script lvm2 has overlapping Default-Start and Default-Stop runlevels 
(S) and (S). This should be fixed.
warning: ssh: unable to open supervise/ok: file does not exist
invoke-rc.d: initscript ssh, action "restart" failed.
dpkg: error processing package openssh-server (--configure):
 installed openssh-server package post-installation script subprocess returned 
error exit status 1
Processing triggers for man-db (2.8.7-3) ...
Errors were encountered while processing:
 openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

So there is still a lag of 1.5 seconds from the moment runsvdir
detects a new directory and the moment the runsv process create
the ok pipe.
Also, i'm afraid this lag may be affected from the filesystem type
and the hardware, so i need to keep a workaround like (1)
in place.
I'm waiting to test with a service that links the supervise directory
into run (there is none currently), maybe it helps?
Any hope to further reducing this lag?

(1) 
https://salsa.debian.org/debian/init-system-helpers/merge_requests/10/diffs?commit_id=df19096f36689dfe62a8bec3550bd39e7782065a


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.20.3-van (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: runit (via /run/runit.stopit)

Versions of packages runit depends on:
ii  libc6           2.28-10
ii  sysuser-helper  1.3.3

Versions of packages runit recommends:
ii  runit-init  2.1.2-34

runit suggests no packages.

-- Configuration Files:
/etc/runit/3 changed [not included]

-- no debconf information

-- debsums errors found:
debsums: changed file /lib/runit/invoke-run (from runit package)

Reply via email to