summaryrefslogtreecommitdiff
path: root/examples/s6/utmpd/run
blob: 21b08267e9077eb26893e352dd743ba5b2c81dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/execlineb -P

fdmove -c 2 1
foreground { mkdir -p -m 0755 /run/utmps }
foreground { chown utmp:utmp /run/utmps }
unexport ?
s6-setuidgid utmp
cd /run/utmps
fdmove 1 3
s6-ipcserver -1 -- /run/utmps/.utmpd-socket
utmps-utmpd