21 lines
444 B
Plaintext
21 lines
444 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2019 Hyperbola Project
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description="sndio service"
|
|
|
|
command="/usr/sbin/sndiod"
|
|
command_args="-dd $SNDIOD_ARGS"
|
|
command_background="yes"
|
|
pidfile="/run/sndiod/sndiod.pid"
|
|
retry="TERM/10/KILL/5"
|
|
|
|
depend() {
|
|
need localmount
|
|
after bootmisc modules isapnp coldplug hotplug alsasound
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --mode 0700 /run/sndiod
|
|
}
|