Package: socklog-run
Version: 2.1.0+repack-6
Severity: normal

Dear Maintainers,

I wanted to install a system log daemon on a new test installation of
Devuan running sysv-init. I looked at the selection of system logging
daemons on offer and, being keen on the runit family of software, I
chose socklog-run as a nice minimal solution.

root@devuan:~# apt-get install system-log-daemon
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package system-log-daemon is a virtual package provided by:
  syslog-ng-core 4.8.1-5
  socklog-run 2.1.0+repack-6
  rsyslog 8.2504.0-1devuan1
  inetutils-syslogd 2:2.6-3
  busybox-syslogd 1:1.37.0-6
You should explicitly select one to install.

As expected, this pulled in and started runit-run.

root@devuan:~# apt-get install socklog-run
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ipsvd runit runit-run socklog sysuser-helper
Suggested packages:
  ucspi-unix runit-services xchpst
The following NEW packages will be installed:
  ipsvd runit runit-run socklog socklog-run sysuser-helper
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 302 kB of archives.
After this operation, 1,267 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://gb.deb.devuan.org/merged excalibur/main amd64 ipsvd amd64 1.0.0-12 
[69.6 kB]
Get:2 http://gb.deb.devuan.org/merged excalibur/main amd64 sysuser-helper all 
1.6.0 [11.6 kB]
Get:3 http://gb.deb.devuan.org/merged excalibur/main amd64 runit amd64 2.2.0-3 
[143 kB]
Get:4 http://gb.deb.devuan.org/merged excalibur/main amd64 runit-run all 
2.2.0-3 [13.7 kB]
Get:5 http://gb.deb.devuan.org/merged excalibur/main amd64 socklog amd64 
2.1.0+repack-6 [54.0 kB]
Get:6 http://gb.deb.devuan.org/merged excalibur/main amd64 socklog-run amd64 
2.1.0+repack-6 [10.2 kB]
Fetched 302 kB in 0s (1,209 kB/s)       
Selecting previously unselected package ipsvd.
(Reading database ... 133857 files and directories currently installed.)
Preparing to unpack .../0-ipsvd_1.0.0-12_amd64.deb ...
Unpacking ipsvd (1.0.0-12) ...
Selecting previously unselected package sysuser-helper.
Preparing to unpack .../1-sysuser-helper_1.6.0_all.deb ...
Unpacking sysuser-helper (1.6.0) ...
Selecting previously unselected package runit.
Preparing to unpack .../2-runit_2.2.0-3_amd64.deb ...
runit: setting up for runsvchdir
runit: current symlink succesfully created
Unpacking runit (2.2.0-3) ...
Selecting previously unselected package runit-run.
Preparing to unpack .../3-runit-run_2.2.0-3_all.deb ...
Unpacking runit-run (2.2.0-3) ...
Selecting previously unselected package socklog.
Preparing to unpack .../4-socklog_2.1.0+repack-6_amd64.deb ...
Unpacking socklog (2.1.0+repack-6) ...
Selecting previously unselected package socklog-run.
Preparing to unpack .../5-socklog-run_2.1.0+repack-6_amd64.deb ...
Unpacking socklog-run (2.1.0+repack-6) ...
Setting up socklog (2.1.0+repack-6) ...
Setting up ipsvd (1.0.0-12) ...
Setting up sysuser-helper (1.6.0) ...
Setting up runit (2.2.0-3) ...
Creating group '_runit-log' with GID 996.
Creating user '_runit-log' (runit svlogd user) with UID 996 and GID 996.
Setting up socklog-run (2.1.0+repack-6) ...
Creating group '_socklog-unix' with GID 995.
Creating user '_socklog-unix' (Socklog unix user) with UID 995 and GID 995.
Creating group '_socklog-klog' with GID 994.
Creating user '_socklog-klog' (Socklog klog user) with UID 994 and GID 994.
Creating group '_socklog-inet' with GID 993.
Creating user '_socklog-inet' (Socklog inet user) with UID 993 and GID 993.
Creating group '_socklog-ucspi-tcp' with GID 992.
Creating user '_socklog-ucspi-tcp' (Socklog ucspi-tcp user) with UID 992 and 
GID 992.
Creating group '_socklog-notify' with GID 991.
Creating user '_socklog-notify' (Socklog notify user) with UID 991 and GID 991.
Setting up runit-run (2.2.0-3) ...
Processing triggers for man-db (2.13.1-1) ...

I was surprised, however, that the service didn't get started
automatically:

root@devuan:~# sv status /etc/service/*
fail: /etc/service/*: unable to change to service directory: file does not exist

I needed to run:

root@devuan:~# update-service --add socklog-unix

I see in the source package's runit control file it is set to start
automatically, but this is not effective with runit-run.

In general this is the correct behaviour: we don't want runit-run
starting services that the superior process supervisor has also
started. But in this case socklog-run is *only* started by runit and
users would expect that installing it would start the logging service,
the same as the other alternative packages with Provides:
system-log-daemon.

The need to perform another operation is not mentioned in the package
decription or the README.Debian for socklog or socklog-run.

(I also notice the README.Debian has an incorrect path for the extra
documentation to configure socklog - need to add 'html/'.)

I suggest one of two solutions:

1) Extend the postinst maintscript to install the service (using
update-service if this is appropriate in a maintscript) for this
package.

2) Consider updating runit-helper always to install services in the rare
case of packages that only have runit integration. Perhaps something in
the runit control file could express this?

with a fallback to:

3) Document in README.Debian how to enable and start the daemon if not
using runit-init.

Also note the possibility of contributing to
https://wiki.debian.org/Teams/Logging with pros, cons and caveats for
runit-init and non-runit-init users of socklog-run.

Thanks,

Andrew


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

Kernel: Linux 6.12.41+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
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-standalone-sysusers [systemd-sysusers]  257.7-1

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.

-- no debconf information

Reply via email to