aboutsummaryrefslogtreecommitdiffstats
path: root/main/utmps/utmpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/utmps/utmpd.initd')
-rw-r--r--main/utmps/utmpd.initd11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/utmps/utmpd.initd b/main/utmps/utmpd.initd
index 2d4b43e169..4fb80d5128 100644
--- a/main/utmps/utmpd.initd
+++ b/main/utmps/utmpd.initd
@@ -1,8 +1,13 @@
#!/sbin/openrc-run
-# Copyright 2020 Laurent Bercot for Alpine Linux
+# Copyright 2020-2021 Laurent Bercot for Alpine Linux
# Distributed under the terms of the ISC License.
#
+depend() {
+ after bootmisc
+ before networking
+}
+
name=utmpd
description="utmps daemon for the utmp service"
command=s6-ipcserver
@@ -13,6 +18,6 @@ directory=/run/utmps
pidfile=/run/utmps/utmpd.pid
start_pre() {
- mkdir -p -m 0755 /run/utmps
- chown utmp:utmp /run/utmps
+ checkpath -D -d -o utmp:utmp -m 0755 /run/utmps
+ checkpath -f -o utmp:utmp -m 0644 /run/utmps/utmp
}