about summary refs log tree commit diff
path: root/examples/s6/wtmpd/run
blob: d8aba76c1a4fba91da7b19e006dc54c90d4c19f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/execlineb -P

fdmove -c 2 1
unexport ?
s6-setuidgid utmp
cd /var/log  # will only work after /var/log is mounted!
fdmove 1 3
s6-ipcserver -1 -- /run/utmps/.wtmpd-socket
utmps-wtmpd