diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-23 06:49:25 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-23 06:49:25 +0000 |
| commit | 1aa3bc74170f10a4285827efa2748d1d6c2e4613 (patch) | |
| tree | 3fc6b79944f119dddf85a1cf8758cfbbab607cbe /examples/source-router/init-devtmpfs | |
| parent | 3c61b2916c56bfa8d3ce7a6a5480eb93c2ed1470 (diff) | |
| download | s6-rc-1aa3bc74170f10a4285827efa2748d1d6c2e4613.tar.gz | |
New example batch of service definitions
Diffstat (limited to 'examples/source-router/init-devtmpfs')
| -rw-r--r-- | examples/source-router/init-devtmpfs/dependencies.d/00 | 0 | ||||
| -rw-r--r-- | examples/source-router/init-devtmpfs/down | 1 | ||||
| -rw-r--r-- | examples/source-router/init-devtmpfs/flag-essential | 0 | ||||
| -rw-r--r-- | examples/source-router/init-devtmpfs/type | 1 | ||||
| -rw-r--r-- | examples/source-router/init-devtmpfs/up | 11 |
5 files changed, 13 insertions, 0 deletions
diff --git a/examples/source-router/init-devtmpfs/dependencies.d/00 b/examples/source-router/init-devtmpfs/dependencies.d/00 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source-router/init-devtmpfs/dependencies.d/00 diff --git a/examples/source-router/init-devtmpfs/down b/examples/source-router/init-devtmpfs/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/examples/source-router/init-devtmpfs/down @@ -0,0 +1 @@ + diff --git a/examples/source-router/init-devtmpfs/flag-essential b/examples/source-router/init-devtmpfs/flag-essential new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source-router/init-devtmpfs/flag-essential diff --git a/examples/source-router/init-devtmpfs/type b/examples/source-router/init-devtmpfs/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/examples/source-router/init-devtmpfs/type @@ -0,0 +1 @@ +oneshot diff --git a/examples/source-router/init-devtmpfs/up b/examples/source-router/init-devtmpfs/up new file mode 100644 index 0000000..7c59980 --- /dev/null +++ b/examples/source-router/init-devtmpfs/up @@ -0,0 +1,11 @@ +if { s6-mkdir -p -m 0755 -- /dev/pts /dev/shm } +if { s6-mount -wt devpts -o noexec,nosuid,gid=0,mode=0600 devpts /dev/pts } +if { s6-ln -s /proc/self/fd /dev/fd } +if { s6-ln -s /proc/kcore /dev/core } +if { s6-ln -s loop0 /dev/loop } +if { s6-ln -s ram0 /dev/ram } +if { s6-ln -s rtc0 /dev/rtc } +if { s6-mount -t tmpfs -o noexec,nosuid,nodev,mode=0755 tmpfs /dev/shm } +if { s6-ln -s fd/0 /dev/stdin } +if { s6-ln -s fd/1 /dev/stdout } +if { s6-ln -s fd/2 /dev/stderr } |
