#!/sbin/openrc-run

depend() {
  after bootmisc
  before networking
  after utmpd
}

name=wtmpd
description="utmps daemon for the wtmp service"
command=s6-ipcserver
command_args="/run/utmps/.wtmpd-socket utmps-wtmpd"
command_user=utmp
command_background=true
directory=/var/log
pidfile=/run/utmps/wtmpd.pid

start_pre() {
  checkpath -f -o utmp:utmp /var/log/wtmp
}
