#!/sbin/openrc-run

depend() {
  after bootmisc
  before networking
}

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

start_pre() {
  checkpath -D -d -o utmp:utmp -m 0755 /run/utmps
}
