dot

packages and services management
Log | Files | Refs | README

commit d281fbc98e65e66c6df69c6ad6f7349dbba25faf
parent 4e4caa0897d0c827d9e223df415cc9b4fed4449f
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  8 Nov 2018 23:03:18 +0100

service-init: adjusting logs

Diffstat:
Mbin/service-init | 7++++---
Ms6/s6-svscan/log/run | 4+---
2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/bin/service-init b/bin/service-init @@ -4,6 +4,7 @@ if { s6-rmrf /run/s6 /var/s6/init } if { s6-mkdir -p /run/s6 /var/log /var/s6/init /var/s6/source } if { s6-mkfifo /var/s6/init/fifo } cd /var/s6 + if { cp -r /etc/s6/s6-svscan/log /var/s6/source/s6-svscan-log } background { @@ -21,11 +22,11 @@ background { if { importas ! ! kill $! } # then kill s6-log if { s6-rc -l live -u change s6-svscan-log } if { s6-rc -l live -u change ok-all } - if { echo ok } + if { echo service-init started } } -redirfd -wnb 1 init/fifo -redirfd -wnb 2 init/fifo redirfd -r 0 /dev/null +redirfd -wnb 1 init/fifo +fdmove -c 2 1 s6-svscan -t0 /run/s6 diff --git a/s6/s6-svscan/log/run b/s6/s6-svscan/log/run @@ -3,6 +3,4 @@ redirfd -w 2 /dev/console redirfd -w 1 /dev/null redirfd -rnb 0 /var/s6/init/fifo -#s6-applyuidgid -u 0 -g 0 - -s6-log -bp t /var/log/s6 +s6-log -bp t /var/log/s6-svscan