aboutsummaryrefslogtreecommitdiffstats
path: root/main/utmps/wtmpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/utmps/wtmpd.initd')
-rw-r--r--main/utmps/wtmpd.initd24
1 files changed, 12 insertions, 12 deletions
diff --git a/main/utmps/wtmpd.initd b/main/utmps/wtmpd.initd
index 748fde3d57d..8d3f6245ad9 100644
--- a/main/utmps/wtmpd.initd
+++ b/main/utmps/wtmpd.initd
@@ -2,23 +2,23 @@
# 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 wtmp"
+command_user=utmp
+command_background=yes
+directory=/var/log/wtmpd
+pidfile=/run/utmps/wtmpd.pid
depend() {
- need localmount
+ need localmount utmp-prepare
after bootmisc
before networking
- after utmpd
}
-name=wtmpd
-description="utmps daemon for the wtmp service"
-command=s6-ipcserver
-command_args="/run/utmps/.wtmpd-socket utmps-wtmpd"
-command_user=utmp
-command_background=true
-directory=/var/log
-pidfile=/run/utmps/wtmpd.pid
-
start_pre() {
- checkpath -f -o utmp:utmp -m 0644 /var/log/wtmp
+ checkpath -d -o utmp:utmp -m 0755 /run/utmps
+ checkpath -d -o utmp:utmp -m 2755 /var/log/wtmpd
}