| 1 | #!/sbin/openrc-run |
| 2 | # Copyright 2020-2021 Laurent Bercot for Alpine Linux |
| 3 | # Distributed under the terms of the ISC License. |
| 4 | # |
| 5 | name="utmpd" |
| 6 | description="utmps daemon for the utmp service" |
| 7 | |
| 8 | command=/usr/bin/s6-ipcserver |
| 9 | command_args="/run/utmps/.utmpd-socket utmps-utmpd" |
| 10 | command_user=utmp |
| 11 | command_background=yes |
| 12 | directory=/run/utmps |
| 13 | pidfile=/run/utmps/utmpd.pid |
| 14 | |
| 15 | depend() { |
| 16 | need utmp-prepare |
| 17 | after bootmisc |
| 18 | before networking |
| 19 | } |
| 20 | |
| 21 | start_pre() { |
| 22 | checkpath -d -o utmp:utmp -m 0755 /run/utmps |
| 23 | } |