summaryrefslogtreecommitdiff
path: root/examples/s6/wtmpd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/s6/wtmpd')
-rw-r--r--examples/s6/wtmpd/log/notification-fd1
-rwxr-xr-xexamples/s6/wtmpd/log/run5
-rwxr-xr-xexamples/s6/wtmpd/run2
3 files changed, 1 insertions, 7 deletions
diff --git a/examples/s6/wtmpd/log/notification-fd b/examples/s6/wtmpd/log/notification-fd
deleted file mode 100644
index 00750ed..0000000
--- a/examples/s6/wtmpd/log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/examples/s6/wtmpd/log/run b/examples/s6/wtmpd/log/run
deleted file mode 100755
index b23b32e..0000000
--- a/examples/s6/wtmpd/log/run
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/execlineb -P
-
-s6-setuidgid utmplog
-exec -c
-s6-log -d3 -- t /var/log/utmps-wtmpd
diff --git a/examples/s6/wtmpd/run b/examples/s6/wtmpd/run
index 83844ae..d8aba76 100755
--- a/examples/s6/wtmpd/run
+++ b/examples/s6/wtmpd/run
@@ -3,7 +3,7 @@
fdmove -c 2 1
unexport ?
s6-setuidgid utmp
-cd /run/utmps
+cd /var/log # will only work after /var/log is mounted!
fdmove 1 3
s6-ipcserver -1 -- /run/utmps/.wtmpd-socket
utmps-wtmpd