summaryrefslogtreecommitdiff
path: root/examples/openrc/utmpd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/openrc/utmpd')
-rwxr-xr-xexamples/openrc/utmpd8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/openrc/utmpd b/examples/openrc/utmpd
new file mode 100755
index 0000000..a091528
--- /dev/null
+++ b/examples/openrc/utmpd
@@ -0,0 +1,8 @@
+#!/sbin/openrc-run
+
+# Assumes the /run/utmps directory already exists and belongs to utmp
+
+name="utmpd"
+command="s6-ipcserver -- /run/utmps/utmpd-socket utmps-utmpd"
+pidfile="/run/utmps/utmpd.pid"
+start_stop_daemon_args="-b -m -c utmp -d /run/utmps"