aports/main/utmps/wtmpd.initd
Laurent Bercot 45d81b6d7c main/utmps: upgrade to 0.1.1.0 and set up services
- add an utmp-init oneshot to be run in the boot runlevel, to
initialize the utmp/wtmp dbs at boot time as sysvinit would do
 - add a setup-utmp script to add/remove the services
2021-12-21 18:34:42 +00:00

25 lines
537 B
Plaintext

#!/sbin/openrc-run
# Copyright 2020-2021 Laurent Bercot for Alpine Linux
# Distributed under the terms of the ISC License.
#
name=wtmpd
description="utmps daemon for the wtmp service"
command=/bin/s6-ipcserver
command_args="/run/utmps/.wtmpd-socket utmps-wtmpd"
command_user=utmp
command_background=yes
directory=/var/log/wtmpd
pidfile=/run/utmps/wtmpd.pid
depend() {
need localmount
after bootmisc
before networking
}
start_pre() {
checkpath -d -o utmp:utmp -m 0755 /run/utmps
checkpath -d -o utmp:utmp -m 2755 /var/log/wtmpd
}