summaryrefslogtreecommitdiff
path: root/examples/s6-rc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-19 10:08:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-19 10:08:03 +0000
commit793cf14db75f7802408130ef87598850f3186956 (patch)
treef1ae96ee789c11d279cace067f62f868ba57d306 /examples/s6-rc
parentb9781c6faa797fd68ea2807345c02fa12c3e0efb (diff)
downloadutmps-793cf14db75f7802408130ef87598850f3186956.tar.xz
Prepare for 0.1.0.2, update examples
Diffstat (limited to 'examples/s6-rc')
-rw-r--r--examples/s6-rc/utmpd-log/consumer-for1
-rw-r--r--examples/s6-rc/utmpd-log/dependencies1
-rw-r--r--examples/s6-rc/utmpd-log/notification-fd1
-rw-r--r--examples/s6-rc/utmpd-log/run5
-rw-r--r--examples/s6-rc/utmpd-log/type1
-rw-r--r--examples/s6-rc/utmpd/pipeline-name1
-rw-r--r--examples/s6-rc/utmpd/producer-for1
-rw-r--r--examples/s6-rc/wtmpd-log/consumer-for1
-rw-r--r--examples/s6-rc/wtmpd-log/dependencies1
-rw-r--r--examples/s6-rc/wtmpd-log/notification-fd1
-rw-r--r--examples/s6-rc/wtmpd-log/run5
-rw-r--r--examples/s6-rc/wtmpd-log/type1
-rw-r--r--examples/s6-rc/wtmpd/dependencies5
-rw-r--r--examples/s6-rc/wtmpd/pipeline-name1
-rw-r--r--examples/s6-rc/wtmpd/producer-for1
-rw-r--r--examples/s6-rc/wtmpd/run2
16 files changed, 6 insertions, 23 deletions
diff --git a/examples/s6-rc/utmpd-log/consumer-for b/examples/s6-rc/utmpd-log/consumer-for
deleted file mode 100644
index fe07d03..0000000
--- a/examples/s6-rc/utmpd-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-utmpd
diff --git a/examples/s6-rc/utmpd-log/dependencies b/examples/s6-rc/utmpd-log/dependencies
deleted file mode 100644
index 8b13789..0000000
--- a/examples/s6-rc/utmpd-log/dependencies
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/examples/s6-rc/utmpd-log/notification-fd b/examples/s6-rc/utmpd-log/notification-fd
deleted file mode 100644
index 00750ed..0000000
--- a/examples/s6-rc/utmpd-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/examples/s6-rc/utmpd-log/run b/examples/s6-rc/utmpd-log/run
deleted file mode 100644
index ec3b2f4..0000000
--- a/examples/s6-rc/utmpd-log/run
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/execlineb -P
-
-s6-setuidgid utmplog
-exec -c
-s6-log -d3 -- t /var/log/utmpd
diff --git a/examples/s6-rc/utmpd-log/type b/examples/s6-rc/utmpd-log/type
deleted file mode 100644
index 5883cff..0000000
--- a/examples/s6-rc/utmpd-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/examples/s6-rc/utmpd/pipeline-name b/examples/s6-rc/utmpd/pipeline-name
deleted file mode 100644
index d75e141..0000000
--- a/examples/s6-rc/utmpd/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-utmpd-pipeline
diff --git a/examples/s6-rc/utmpd/producer-for b/examples/s6-rc/utmpd/producer-for
deleted file mode 100644
index 8ff8e12..0000000
--- a/examples/s6-rc/utmpd/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-utmpd-log
diff --git a/examples/s6-rc/wtmpd-log/consumer-for b/examples/s6-rc/wtmpd-log/consumer-for
deleted file mode 100644
index 18e5a30..0000000
--- a/examples/s6-rc/wtmpd-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-wtmpd
diff --git a/examples/s6-rc/wtmpd-log/dependencies b/examples/s6-rc/wtmpd-log/dependencies
deleted file mode 100644
index 8b13789..0000000
--- a/examples/s6-rc/wtmpd-log/dependencies
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/examples/s6-rc/wtmpd-log/notification-fd b/examples/s6-rc/wtmpd-log/notification-fd
deleted file mode 100644
index 00750ed..0000000
--- a/examples/s6-rc/wtmpd-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/examples/s6-rc/wtmpd-log/run b/examples/s6-rc/wtmpd-log/run
deleted file mode 100644
index eeda433..0000000
--- a/examples/s6-rc/wtmpd-log/run
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/execlineb -P
-
-s6-setuidgid utmplog
-exec -c
-s6-log -d3 -- t /var/log/wtmpd
diff --git a/examples/s6-rc/wtmpd-log/type b/examples/s6-rc/wtmpd-log/type
deleted file mode 100644
index 5883cff..0000000
--- a/examples/s6-rc/wtmpd-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/examples/s6-rc/wtmpd/dependencies b/examples/s6-rc/wtmpd/dependencies
index 6cfcf60..194a7b1 100644
--- a/examples/s6-rc/wtmpd/dependencies
+++ b/examples/s6-rc/wtmpd/dependencies
@@ -1 +1,6 @@
+# mount-var-log is not defined in this example;
+# it's there to show that wtmpd should only run
+# once /var/log has been mounted.
+
utmps-prepare
+mount-var-log
diff --git a/examples/s6-rc/wtmpd/pipeline-name b/examples/s6-rc/wtmpd/pipeline-name
deleted file mode 100644
index 37edf1f..0000000
--- a/examples/s6-rc/wtmpd/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-wtmpd-pipeline
diff --git a/examples/s6-rc/wtmpd/producer-for b/examples/s6-rc/wtmpd/producer-for
deleted file mode 100644
index 4206ab1..0000000
--- a/examples/s6-rc/wtmpd/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-wtmpd-log
diff --git a/examples/s6-rc/wtmpd/run b/examples/s6-rc/wtmpd/run
index b9d9da3..cb26286 100644
--- a/examples/s6-rc/wtmpd/run
+++ b/examples/s6-rc/wtmpd/run
@@ -2,7 +2,7 @@
fdmove -c 2 1
s6-setuidgid utmp
-cd /run/utmps
+cd /var/log
fdmove 1 3
s6-ipcserver -1 -- /run/utmps/wtmpd-socket
utmps-wtmpd