mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 01:01:32 +01:00
- 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
25 lines
537 B
Plaintext
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
|
|
}
|