summaryrefslogtreecommitdiff
path: root/examples/s6/wtmpd/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/s6/wtmpd/run')
-rwxr-xr-xexamples/s6/wtmpd/run9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/s6/wtmpd/run b/examples/s6/wtmpd/run
new file mode 100755
index 0000000..9cc49b7
--- /dev/null
+++ b/examples/s6/wtmpd/run
@@ -0,0 +1,9 @@
+#!/bin/execlineb -P
+
+fdmove -c 2 1
+unexport ?
+s6-setuidgid utmp
+cd /run/utmps
+fdmove 1 3
+s6-ipcserver -1 -- /run/utmps/wtmpd-socket
+utmps-wtmpd