ports/main/nnd-s6-services/rc/utmpd/run

16 lines
414 B
Plaintext
Executable File

#!/bin/execlineb -P
define SOCKET /run/utmps/.utmpd-socket
s6-envdir -i /etc/s6/env/path
emptyenv -p
# TODO: This is ugly and needs fixes
foreground { touch /var/log/wtmp }
foreground { chmod 644 /var/log/wtmp }
foreground { mkdir -p /run/utmps }
foreground { touch /run/utmps/utmp }
foreground { chmod 755 /run/utmps }
foreground { chmod 644 /run/utmps/utmp }
s6-ipcserver /run/utmps/.utmpd-socket utmps-utmpd