summaryrefslogtreecommitdiff
path: root/repo/utmps/utmpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'repo/utmps/utmpd.initd')
-rw-r--r--repo/utmps/utmpd.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/repo/utmps/utmpd.initd b/repo/utmps/utmpd.initd
new file mode 100644
index 0000000..d04c6b9
--- /dev/null
+++ b/repo/utmps/utmpd.initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 2020-2021 Laurent Bercot for Alpine Linux
+# Distributed under the terms of the ISC License.
+#
+name="utmpd"
+description="utmps daemon for the utmp service"
+
+command=/bin/s6-ipcserver
+command_args="/run/utmps/.utmpd-socket utmps-utmpd"
+command_user=utmp
+command_background=yes
+directory=/run/utmps
+pidfile=/run/utmps/utmpd.pid
+
+depend() {
+ need utmp-prepare
+ after bootmisc
+ before networking
+}
+
+start_pre() {
+ checkpath -d -o utmp:utmp -m 0755 /run/utmps
+}