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

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

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