From 793cf14db75f7802408130ef87598850f3186956 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 19 Apr 2021 10:08:03 +0000 Subject: Prepare for 0.1.0.2, update examples --- examples/openrc/wtmpd | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'examples/openrc/wtmpd') 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 } -- cgit v1.3.1