aboutsummaryrefslogtreecommitdiffstats
path: root/examples/source/00
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-05-05 06:29:50 +0000
committerLaurent Bercot <ska@appnovation.com>2025-05-05 06:29:50 +0000
commite18d6958b2470a2e68cc637945ccf3a1dae5c0a2 (patch)
tree90e065e7b7422c2f2dbd5d924dfcd14a2866de39 /examples/source/00
parent09ccd3128f2296d3a0cd1602e64caf06cf22c64f (diff)
downloads6-rc-e18d6958b2470a2e68cc637945ccf3a1dae5c0a2.tar.gz
Update examples
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/source/00')
-rw-r--r--examples/source/00/down1
-rw-r--r--examples/source/00/up4
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/source/00/down b/examples/source/00/down
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/examples/source/00/down
@@ -0,0 +1 @@
+
diff --git a/examples/source/00/up b/examples/source/00/up
index b0b010a..b86cc75 100644
--- a/examples/source/00/up
+++ b/examples/source/00/up
@@ -1,2 +1,4 @@
if { s6-echo "init-stage2 starting." }
-s6-hostname foo.example.com
+if { s6-clock @40000000681859f30cfd4561 }
+backtick -E hostname { redirfd -r 0 /etc/hostname s6-cat }
+s6-hostname $hostname