multiple scandir and rc database
Hello, i'm trying to test to use multiple scandir and multiple rc database.
So i have a one scandir started at the end of init file then i have a second started by a longrun service on stage 2 like this :
#!/usr/local/bin/execlineb -P
fdmove -c 2 1
if { s6-echo -- start switch-svscan }
foreground { s6-hiercopy /etc/s6/user-serv /run/user }
if {
if { s6-mkdir -p -m 0755 /run/user-run/ }
forbacktickx -p -0 i { s6-ls -0 /run/user }
import -u i
foreground
{
s6-ln -s -- /run/user/${i} /run/user-run/
}
}
s6-envdir -I /run/user-run/service/.s6-svscan
s6-svscan -st0 /run/user-run/service
then i launch a s6-rc-init by a oneshot just after like this :
#!/usr/local/bin/execlineb -P
fdmove -c 2 1
if { s6-echo -- start switch-user }
if { s6-rc-init -c /etc/s6/compiled/all-User/console-user -l /run/user-rc /run/user-run/service }
s6-rc -l /run/user-rc -u change All
those two service are started at the end of my booting procedure. So all works fine, the scandir is started correctly and the rc database (with some service on it) turn correctly too.
Where i have trouble is for shutdown the machine. The down file for the scandir is :
#!/usr/local/bin/execlineb -S0
s6-svscanctl -q -- /run/user-run/service
and for the rc database is :
#!/usr/local/bin/execlineb -P
s6-rc -l /run/user-rc -da change
The rc database bring down correctly the service declared on it but the scandir do not want to stop.
However, i have a another trouble, when i try to launch some classic service with the second scandir(or the first, it's equal) i have this error on the log :
_at_40000000575cf0bb05fd2e24 s6-supervise syslogd-linux/log: warning: unable to spawn ./run - waiting 10 seconds
_at_40000000575cf0c504c9de44 s6-supervise syslogd-linux: warning: unable to spawn ./run - waiting 10 seconds
_at_40000000575cf0c504ca5f2c s6-supervise (child): fatal: unable to exec run: No such file or directory
_at_40000000575cf0c50660c63c s6-supervise (child): fatal: unable to exec run: No such file or directory
Any idea?
Eric Vidal <eric_at_obarun.org>
Received on Mon Jun 13 2016 - 05:57:57 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:38:49 UTC