aports/main/utmps/wtmpd.initd
Laurent Bercot 6aaeab1b1b main/utmps: upgrade to 0.1.0.2
Also fix utmpd and wtmpd scripts to run after bootmisc,
and make wtmpd use /var/log/wtmp as its file.
2021-04-21 07:30:05 +00:00

25 lines
493 B
Plaintext

#!/sbin/openrc-run
# Copyright 2020-2021 Laurent Bercot for Alpine Linux
# Distributed under the terms of the ISC License.
#
depend() {
need localmount
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 -m 0644 /var/log/wtmp
}