about summary refs log tree commit diff
path: root/examples/openrc/utmpd
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-19 10:08:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-19 10:08:03 +0000
commit793cf14db75f7802408130ef87598850f3186956 (patch)
treef1ae96ee789c11d279cace067f62f868ba57d306 /examples/openrc/utmpd
parentb9781c6faa797fd68ea2807345c02fa12c3e0efb (diff)
downloadutmps-793cf14db75f7802408130ef87598850f3186956.tar.gz
utmps-793cf14db75f7802408130ef87598850f3186956.tar.xz
utmps-793cf14db75f7802408130ef87598850f3186956.zip
Prepare for 0.1.0.2, update examples
Diffstat (limited to 'examples/openrc/utmpd')
-rwxr-xr-xexamples/openrc/utmpd20
1 files changed, 13 insertions, 7 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
 }