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

16 lines
414 B
Plaintext
Raw Normal View History

2022-03-21 12:25:55 +00:00
#!/bin/execlineb -P
define SOCKET /run/utmps/.utmpd-socket
2023-02-01 08:50:08 +00:00
s6-envdir -i /etc/s6/env/path
emptyenv -p
# TODO: This is ugly and needs fixes
2022-03-21 12:25:55 +00:00
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 }
2023-02-01 08:50:08 +00:00
s6-ipcserver /run/utmps/.utmpd-socket utmps-utmpd