about summary refs log tree commit diff
path: root/examples/openrc/utmpd
blob: 291180a9722950ffa4910d368d9cdf2c849da3d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run

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
command_background=true
directory=/run/utmps
pidfile=/run/utmps/utmpd.pid

start_pre() {
  checkpath -D -d -o utmp:utmp -m 0755 /run/utmps
}