ucspilogd behaviour

From: Eric Vidal <eric_at_obarun.org>
Date: Fri, 10 Jun 2016 09:49:45 +0400


I have a bundle with this two services on it : syslogds6-daemon, syslogds6-log.

This is the script for the daemon

#!/usr/local/bin/execlineb -P
fdmove -c 2 1
exec -c
s6-envuidgid nobody
fdmove 1 3
s6-ipcserver -U -1 -- /dev/log
fdmove -c 1 2

This is the script for the log

#!/usr/local/bin/execlineb -P
fdmove -c 2 1
foreground {
        forx -p dir { error auth daemon messages user misc mail }
        import -ui dir
        foreground {
                if -n { s6-test -d /var/log/syslogds6/${dir} }
                if { s6-mkdir -p -m 0755 /var/log/syslogds6/${dir} }
                chown -R s6log:log /var/log/syslogds6/${dir}
unexport ?
s6-setuidgid s6log
s6-envdir -f env
import -Cs LOGSCRIPT
exec -c
s6-log n3 $LOGSCRIPT

When i update a database which do not contents this bundle, these two services disappear from the supervision tree. However, some ucspilogd IPCREMOTEEUID IPCREMOTEEGID line keep running on background without, obviously, a s6-supervise on it.
This behaviour is not as it all the time. Sometime all the line disappear for the supervision tree, sometime some line rest on the "supervision tree"

This is normal?

Eric Vidal <eric_at_obarun.org>
Received on Fri Jun 10 2016 - 05:49:45 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC