21 lines
496 B
Plaintext
21 lines
496 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2019-2021 Hyperbola Project
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description='A low-latency audio service'
|
|
|
|
command='/usr/sbin/jackd'
|
|
command_args="${ARGS}"
|
|
command_background='yes'
|
|
pidfile='/run/jackd/jackd.pid'
|
|
retry='TERM/10/KILL/5'
|
|
|
|
depend() {
|
|
need 'localmount'
|
|
after 'bootmisc' 'modules' 'isapnp' 'coldplug' 'hotplug' 'alsasound' 'sndiod'
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner ':audio' --mode '750' '/run/jackd'
|
|
}
|