summaryrefslogtreecommitdiff
path: root/examples/openrc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/openrc')
-rwxr-xr-xexamples/openrc/utmpd20
-rwxr-xr-xexamples/openrc/wtmpd21
2 files changed, 27 insertions, 14 deletions
diff --git a/examples/openrc/utmpd b/examples/openrc/utmpd
index 2cf467b..291180a 100755
--- a/examples/openrc/utmpd
+++ b/examples/openrc/utmpd
@@ -1,13 +1,19 @@
#!/sbin/openrc-run
-name="utmpd"
-command="s6-ipcserver"
-command_args="/run/utmps/utmpd-socket utmps-utmpd"
-command_background=yes
+depend() {
+ after bootmisc
+ before networking
+}
+
+name=utmpd
+description="utmps daemon for the utmp service"
+command=s6-ipcserver
+command_args=".utmpd-socket utmps-utmpd"
command_user=utmp
-pidfile="/run/utmps/utmpd.pid"
-start_stop_daemon_args="-d /run/utmps"
+command_background=true
+directory=/run/utmps
+pidfile=/run/utmps/utmpd.pid
start_pre() {
- checkpath -D -d -o utmp:utmp -m 0755 /run/utmps
+ checkpath -D -d -o utmp:utmp -m 0755 /run/utmps
}
diff --git a/examples/openrc/wtmpd b/examples/openrc/wtmpd
index a7bda75..7d40941 100755
--- a/examples/openrc/wtmpd
+++ b/examples/openrc/wtmpd
@@ -1,13 +1,20 @@
#!/sbin/openrc-run
-name="wtmpd"
-command="s6-ipcserver"
-command_args="/run/utmps/wtmpd-socket utmps-wtmpd"
-command_background=yes
+depend() {
+ 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
-pidfile="/run/utmps/wtmpd.pid"
-start_stop_daemon_args="-d /run/utmps"
+command_background=true
+directory=/var/log
+pidfile=/run/utmps/wtmpd.pid
start_pre() {
- checkpath -D -d -o utmp:utmp -m 0755 /run/utmps
+ checkpath -f -o utmp:utmp /var/log/wtmp
}