aports/main/utmps/wtmpd.initd
2020-10-16 11:27:56 -03:00

19 lines
408 B
Plaintext

#!/sbin/openrc-run
# Copyright 2020 Laurent Bercot for Alpine Linux
# Distributed under the terms of the ISC License.
#
name=wtmpd
description="utmps daemon for the wtmp service"
command=s6-ipcserver
command_args=".wtmpd-socket utmps-wtmpd"
command_user=utmp
command_background=true
directory=/run/utmps
pidfile=/run/utmps/wtmpd.pid
start_pre() {
mkdir -p -m 0755 /run/utmps
chown utmp:utmp /run/utmps
}