summaryrefslogtreecommitdiff
path: root/examples/openrc/wtmpd
blob: 7d409412f3b538d1918e2b60845bd3dce406824b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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
}