summaryrefslogtreecommitdiff
path: root/examples/s6-rc/utmpd/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/s6-rc/utmpd/run')
-rw-r--r--examples/s6-rc/utmpd/run8
1 files changed, 8 insertions, 0 deletions
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