summaryrefslogtreecommitdiff
path: root/examples/openrc/utmpd
blob: 2cf467b802090bd2283140d201d4e3911a03aa8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/sbin/openrc-run

name="utmpd"
command="s6-ipcserver"
command_args="/run/utmps/utmpd-socket utmps-utmpd"
command_background=yes
command_user=utmp
pidfile="/run/utmps/utmpd.pid"
start_stop_daemon_args="-d /run/utmps"

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