summaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/s6-linux-init/run-image
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-22 21:56:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-22 21:56:04 +0000
commit82d0f92ab8b84466ae20ab919c1f9c3577b5cecb (patch)
tree776015ae6c6a386125b2d39e13b62f91b99548f8 /layout/rootfs/etc/s6-linux-init/run-image
downloadlh-bootstrap-82d0f92ab8b84466ae20ab919c1f9c3577b5cecb.tar.xz
Initial commit
Diffstat (limited to 'layout/rootfs/etc/s6-linux-init/run-image')
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGHUP4
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGINT4
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGQUIT4
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGTERM4
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR14
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR24
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash7
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/finish9
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/s6-linux-init-early-getty/run3
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/s6-svscan-log/run7
-rw-r--r--layout/rootfs/etc/s6-linux-init/run-image/shm/.empty0
-rw-r--r--layout/rootfs/etc/s6-linux-init/run-image/tmp/.empty0
-rw-r--r--layout/rootfs/etc/s6-linux-init/run-image/uncaught-logs/.empty0
13 files changed, 50 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGHUP b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGHUP
new file mode 100755
index 0000000..ffdd1bb
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGHUP
@@ -0,0 +1,4 @@
+#!/package/admin/execline/command/execlineb -P
+
+foreground { "/etc/rc.tini" }
+s6-svscanctl -h -- "/run"/service
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGINT b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGINT
new file mode 100755
index 0000000..02fdc52
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGINT
@@ -0,0 +1,4 @@
+#!/package/admin/execline/command/execlineb -P
+
+foreground { "/etc/rc.tini" }
+s6-svscanctl -6 -- "/run"/service
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGQUIT b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGQUIT
new file mode 100755
index 0000000..0ca5346
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGQUIT
@@ -0,0 +1,4 @@
+#!/package/admin/execline/command/execlineb -P
+
+foreground { "/etc/rc.tini" }
+s6-svscanctl -q -- "/run"/service
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGTERM b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGTERM
new file mode 100755
index 0000000..329830d
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGTERM
@@ -0,0 +1,4 @@
+#!/package/admin/execline/command/execlineb -P
+
+foreground { "/etc/rc.tini" }
+s6-svscanctl -t -- "/run"/service
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR1 b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR1
new file mode 100755
index 0000000..8580a65
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR1
@@ -0,0 +1,4 @@
+#!/package/admin/execline/command/execlineb -P
+
+foreground { "/etc/rc.tini" }
+s6-svscanctl -7 -- "/run"/service
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR2 b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR2
new file mode 100755
index 0000000..54c54b8
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/SIGUSR2
@@ -0,0 +1,4 @@
+#!/package/admin/execline/command/execlineb -P
+
+foreground { "/etc/rc.tini" }
+s6-svscanctl -0 -- "/run"/service
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash
new file mode 100755
index 0000000..adc08db
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash
@@ -0,0 +1,7 @@
+#!/command/execlineb -P
+
+redirfd -r 0 /dev/console
+redirfd -w 1 /dev/console
+fdmove -c 2 1
+foreground { s6-echo -- "s6-svscan crashed. Dropping to an interactive shell." }
+/bin/sh -i
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/finish b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/finish
new file mode 100755
index 0000000..d6aaa00
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/finish
@@ -0,0 +1,9 @@
+#!/command/execlineb -S0
+
+cd /
+redirfd -w 2 /dev/console
+fdmove -c 1 2
+foreground { s6-svc -X -- "/run"/service/s6-svscan-log }
+unexport ?
+wait -r -- { }
+"/etc/rc.shutdown" ${@}
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/s6-linux-init-early-getty/run b/layout/rootfs/etc/s6-linux-init/run-image/service/s6-linux-init-early-getty/run
new file mode 100755
index 0000000..c48b72d
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/s6-linux-init-early-getty/run
@@ -0,0 +1,3 @@
+#!/command/execlineb -P
+
+getty -L -H %%HOSTNAME%% 38400 /dev/%%CONSOLE%%
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/s6-svscan-log/run b/layout/rootfs/etc/s6-linux-init/run-image/service/s6-svscan-log/run
new file mode 100755
index 0000000..896a294
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/s6-svscan-log/run
@@ -0,0 +1,7 @@
+#!/command/execlineb -P
+
+redirfd -w 2 /dev/console
+redirfd -w 1 /dev/null
+redirfd -rnb 0 fifo
+s6-applyuidgid -u 98 -g 98 --
+s6-log -bp -- t /run/uncaught-logs
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/shm/.empty b/layout/rootfs/etc/s6-linux-init/run-image/shm/.empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/shm/.empty
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/tmp/.empty b/layout/rootfs/etc/s6-linux-init/run-image/tmp/.empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/tmp/.empty
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/uncaught-logs/.empty b/layout/rootfs/etc/s6-linux-init/run-image/uncaught-logs/.empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/uncaught-logs/.empty