Discussion:
Bug#933999: openssh-server: please provide a runscript for runit
(too old to reply)
Lorenzo Puliti
2019-08-05 21:10:02 UTC
Permalink
Package: openssh-server
Version: 1:8.0p1-4
Severity: wishlist
Tags: patch

Dear Maintainer,

here is a patch to add support for Runit initialization system.
While writing the runscript I took a look at both the old sysv script
and systemd unit. The sysv script has two tests that I omitted in
the runscript
( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0
if [ ! -c /dev/null ]; then
....
I'm not sure, are those still relevant?
Also, note that the 'since=1:8.0p1-5' option in the openssh-server.runit file
should match the version that actually adds the runscript.

the git patch is attached, and there is also a MR on salsa
https://salsa.debian.org/ssh-team/openssh/merge_requests/7

If you need more details please ask

Thanks,
Lorenzo


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

Kernel: Linux 4.19.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_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 openssh-server depends on:
ii adduser 3.118
ii debconf [debconf-2.0] 1.5.73
ii dpkg 1.19.7
ii libaudit1 1:2.8.5-2
ii libc6 2.28-10
ii libcom-err2 1.45.3-3
ii libgssapi-krb5-2 1.17-6
ii libkrb5-3 1.17-6
ii libpam-modules 1.3.1-5
ii libpam-runtime 1.3.1-5
ii libpam0g 1.3.1-5
ii libselinux1 2.9-2
ii libssl1.1 1.1.1c-1
pn libsystemd0 <none>
ii libwrap0 7.6.q-28
ii lsb-base 10.2019051400
ii openssh-client 1:8.0p1-4
ii openssh-sftp-server 1:8.0p1-4
ii procps 2:3.3.15-2
ii runit-helper 2.8.13.2
ii ucf 3.0038+nmu1
ii zlib1g 1:1.2.11.dfsg-1

Versions of packages openssh-server recommends:
ii libpam-elogind-compat [libpam-systemd] 1.3
ii ncurses-term 6.1+20190713-2
ii xauth 1:1.0.10-1

Versions of packages openssh-server suggests:
ii lxqt-openssh-askpass [ssh-askpass] 0.14.1-1
pn molly-guard <none>
pn monkeysphere <none>
pn rssh <none>
pn ufw <none>

-- debconf information excluded
Colin Watson
2019-08-11 17:30:01 UTC
Permalink
Post by Lorenzo Puliti
here is a patch to add support for Runit initialization system.
[...]
Post by Lorenzo Puliti
the git patch is attached, and there is also a MR on salsa
https://salsa.debian.org/ssh-team/openssh/merge_requests/7
Thanks for the contribution! I've followed up to the MR with a detailed
review.
--
Colin Watson [***@debian.org]
Loading...