projects/aports·blob master · refs

23 lines · 491 B

1#!/sbin/openrc-run
2# Copyright 2020-2021 Laurent Bercot for Alpine Linux
3# Distributed under the terms of the ISC License.
4#
5name="utmpd"
6description="utmps daemon for the utmp service"
7
8command=/usr/bin/s6-ipcserver
9command_args="/run/utmps/.utmpd-socket utmps-utmpd"
10command_user=utmp
11command_background=yes
12directory=/run/utmps
13pidfile=/run/utmps/utmpd.pid
14
15depend() {
16 need utmp-prepare
17 after bootmisc
18 before networking
19}
20
21start_pre() {
22 checkpath -d -o utmp:utmp -m 0755 /run/utmps
23}