summaryrefslogtreecommitdiff
path: root/examples/s6-rc/utmpd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/s6-rc/utmpd')
-rw-r--r--examples/s6-rc/utmpd/dependencies1
-rw-r--r--examples/s6-rc/utmpd/notification-fd1
-rw-r--r--examples/s6-rc/utmpd/pipeline-name1
-rw-r--r--examples/s6-rc/utmpd/producer-for1
-rw-r--r--examples/s6-rc/utmpd/run8
-rw-r--r--examples/s6-rc/utmpd/type1
6 files changed, 13 insertions, 0 deletions
diff --git a/examples/s6-rc/utmpd/dependencies b/examples/s6-rc/utmpd/dependencies
new file mode 100644
index 0000000..6cfcf60
--- /dev/null
+++ b/examples/s6-rc/utmpd/dependencies
@@ -0,0 +1 @@
+utmps-prepare
diff --git a/examples/s6-rc/utmpd/notification-fd b/examples/s6-rc/utmpd/notification-fd
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/examples/s6-rc/utmpd/notification-fd
@@ -0,0 +1 @@
+3
diff --git a/examples/s6-rc/utmpd/pipeline-name b/examples/s6-rc/utmpd/pipeline-name
new file mode 100644
index 0000000..d75e141
--- /dev/null
+++ b/examples/s6-rc/utmpd/pipeline-name
@@ -0,0 +1 @@
+utmpd-pipeline
diff --git a/examples/s6-rc/utmpd/producer-for b/examples/s6-rc/utmpd/producer-for
new file mode 100644
index 0000000..8ff8e12
--- /dev/null
+++ b/examples/s6-rc/utmpd/producer-for
@@ -0,0 +1 @@
+utmpd-log
diff --git a/examples/s6-rc/utmpd/run b/examples/s6-rc/utmpd/run
new file mode 100644
index 0000000..417ef5e
--- /dev/null
+++ b/examples/s6-rc/utmpd/run
@@ -0,0 +1,8 @@
+#!/bin/execlineb -P
+
+fdmove -c 2 1
+s6-setuidgid utmp
+cd /run/utmps
+fdmove 1 3
+s6-ipcserver -1 -- /run/utmps/utmpd-socket
+utmps-utmpd
diff --git a/examples/s6-rc/utmpd/type b/examples/s6-rc/utmpd/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/examples/s6-rc/utmpd/type
@@ -0,0 +1 @@
+longrun