summaryrefslogtreecommitdiff
path: root/examples/s6/wtmpd
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/wtmpd
parentb9781c6faa797fd68ea2807345c02fa12c3e0efb (diff)
downloadutmps-793cf14db75f7802408130ef87598850f3186956.tar.xz
Prepare for 0.1.0.2, update examples
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