Hi Lorenzo,
Thanks for looking at this! Once I remembered where I put the VM I had
experienced this I was able to help...
On Sat, Sep 20, 2025 at 05:27:50PM +0200, Lorenzo wrote:
1. fresh install socklog-run: are socklog-unix and socklog-klog enabled
and running?
Note that for the service to start it may take up to 7
seconds from when the symlink is created in postinstall.
From the head of the next branch (237cee72), socklog-unix succeeds in
starting but socklog-klog does not get enabled in /etc/service:
root@devuan:/home/ajb85# apt-get install ./socklog-run_2.1.0+repack-7_all.deb
./socklog_2.1.0+repack-7_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'socklog-run' instead of './socklog-run_2.1.0+repack-7_all.deb'
Note, selecting 'socklog' instead of './socklog_2.1.0+repack-7_amd64.deb'
The following packages were automatically installed and are no longer required:
libev4t64 libgetdns10t64
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
runit runit-run
Suggested packages:
ucspi-unix runit-services xchpst
The following NEW packages will be installed:
runit runit-run socklog socklog-run
0 upgraded, 4 newly installed, 0 to remove and 76 not upgraded.
Need to get 0 B/222 kB of archives.
After this operation, 936 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 /home/ajb85/socklog_2.1.0+repack-7_amd64.deb socklog amd64 2.1.0+repack-7
[54.2 kB]
Get:2 /home/ajb85/socklog-run_2.1.0+repack-7_all.deb socklog-run all
2.1.0+repack-7 [10.4 kB]
Selecting previously unselected package runit.
(Reading database ... 151112 files and directories currently installed.)
Preparing to unpack .../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 .../runit-run_2.2.0-3_all.deb ...
Unpacking runit-run (2.2.0-3) ...
Selecting previously unselected package socklog.
Preparing to unpack .../socklog_2.1.0+repack-7_amd64.deb ...
Unpacking socklog (2.1.0+repack-7) ...
Selecting previously unselected package socklog-run.
Preparing to unpack .../socklog-run_2.1.0+repack-7_all.deb ...
Unpacking socklog-run (2.1.0+repack-7) ...
Setting up runit (2.2.0-3) ...
Setting up socklog (2.1.0+repack-7) ...
Setting up socklog-run (2.1.0+repack-7) ...
Setting up runit-run (2.2.0-3) ...
Processing triggers for doc-base (0.11.2) ...
Processing 2 added doc-base files...
Processing triggers for man-db (2.13.1-1) ...
N: Download is performed unsandboxed as root as file
'/home/ajb85/socklog_2.1.0+repack-7_amd64.deb' couldn't be accessed by user
'_apt'. - pkgAcquire::Run (13: Permission denied)
root@devuan:/home/ajb85# sv status socklog-unix
run: socklog-unix: (pid 7956) 22s; run: log: (pid 7955) 22s
root@devuan:/home/ajb85# ls /etc/service
socklog-unix
root@devuan:/home/ajb85# ls /etc/sv
default-syslog socklog-inet socklog-klog socklog-notify socklog-ucspi-tcp
socklog-unix ssh svlogd
2. remove socklog-run: what is the status of socklog-unix and
socklog-klog (the expected is 'down')?
root@devuan:/home/ajb85# apt-get remove socklog-run
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
ipsvd libev4t64 libgetdns10t64 runit runit-run sysuser-helper
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
socklog-run
0 upgraded, 0 newly installed, 1 to remove and 76 not upgraded.
After this operation, 72.7 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 151300 files and directories currently installed.)
Removing socklog-run (2.1.0+repack-7) ...
root@devuan:/home/ajb85# sv status socklog-unix
warning: socklog-unix: unable to open supervise/ok: file does not exist
root@devuan:/home/ajb85# ls /etc/service
socklog-unix
root@devuan:/home/ajb85# ls /etc/service/socklog-unix
check log run
ajb85@devuan:~$ ps auwwx | grep sock
root 7954 0.0 0.0 2444 1456 ? Ss 15:01 0:00 runsv
socklog-unix
_runit-+ 7955 0.0 0.0 2592 1440 ? S 15:01 0:00 svlogd -tt
/var/log/runit/socklog/main /var/log/runit/socklog/auth
/var/log/runit/socklog/authpriv /var/log/runit/socklog/cron
/var/log/runit/socklog/daemon /var/log/runit/socklog/kern
/var/log/runit/socklog/lpr /var/log/runit/socklog/mail
/var/log/runit/socklog/news /var/log/runit/socklog/syslog
/var/log/runit/socklog/user /var/log/runit/socklog/uucp
/var/log/runit/socklog/local0 /var/log/runit/socklog/local1
/var/log/runit/socklog/local2 /var/log/runit/socklog/local3
/var/log/runit/socklog/local4 /var/log/runit/socklog/local5
/var/log/runit/socklog/local6 /var/log/runit/socklog/local7
_socklo+ 7956 0.0 0.0 2456 1272 ? S 15:01 0:00 socklog unix
/dev/log
ajb85 8217 0.0 0.0 6568 2244 pts/0 S+ 15:15 0:00 grep sock
Not down, still being supervised, but not effectively because the
supervise direectory has gone!
3. purge socklog-run package: are /etc/sv/socklog-* gone?
root@devuan:/home/ajb85# apt-get purge socklog-run
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
ipsvd libev4t64 libgetdns10t64 runit runit-run sysuser-helper
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
socklog-run*
0 upgraded, 0 newly installed, 1 to remove and 76 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 151281 files and directories currently installed.)
Purging configuration files for socklog-run (2.1.0+repack-7) ...
dpkg: warning: while removing socklog-run, directory
'/etc/sv/socklog-ucspi-tcp/log' not empty so not removed
dpkg: warning: while removing socklog-run, directory '/etc/sv/socklog-notify'
not empty so not removed
dpkg: warning: while removing socklog-run, directory '/etc/sv/socklog-klog/log'
not empty so not removed
dpkg: warning: while removing socklog-run, directory '/etc/sv/socklog-inet/log'
not empty so not removed
root@devuan:/home/ajb85# ls /etc/service/
socklog-unix
root@devuan:/home/ajb85# ls /etc/service/socklog-unix
/etc/service/socklog-unix
root@devuan:/home/ajb85# ls /etc/sv
default-syslog socklog-inet socklog-klog socklog-notify socklog-ucspi-tcp
ssh svlogd
root@devuan:/home/ajb85# ls /etc/sv/socklog-klog/
log supervise
root@devuan:/home/ajb85#
The new maintscripts do look quite fragile! I wonder if it would be best
just to put a note in the README until a more robust way can be found?
Although at present, policy requires an initscript if there is another
non-systemd service definition (except in cases like this), that might
not always be the case and perhaps runit-helper with runit-run could
become ready to support such cases?
Thanks,
Andrew