47993f6730
- Added Nuklear GUI library with build script and configuration. - Introduced OpenH264 encoder/decoder with build configuration. - Added PortAudio library for audio I/O with custom build script. - Included Python Execnet for multi-Python deployment. - Added Pytest Xdist plugin for distributed testing. - Introduced Shaderc for shader compilation tools. - Added Snappy compression library with necessary patches and configuration. - Included SoundTouch audio processing library with build configuration. - Added SRT library for secure reliable transport. - Introduced VapourSynth video processing framework with configuration. - Added Vid.stab for video stabilization. - Included WebRTC Audio Processing library with build configuration. - Added X264 video encoding library with patches for POSIX compliance. - Introduced X265 video encoder with build configuration. - Added XKeyboard Config for X keyboard configuration files. - Included Xorg XKBComp for keyboard description compilation. - Added Xvidcore MPEG-4 video codec library with configuration. - Introduced ZeroMQ messaging system with patches and build configuration. - Added Zimg library for scaling and colorspace conversion.
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
#!/sbin/openrc-run
|
|
|
|
name="JACK server"
|
|
description="JACK server using a named profile"
|
|
|
|
profile="${RC_SVCNAME#jackd.}"
|
|
[ "$profile" = "$RC_SVCNAME" ] && profile="default"
|
|
|
|
conf_file="/etc/jack/${profile}.conf"
|
|
user_conf="/home/${SVCNAME_USER:-$profile}/.config/jack/${profile}.conf"
|
|
|
|
command="/usr/bin/jackd"
|
|
command_background="yes"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
|
|
depend() {
|
|
need localmount
|
|
use alsasound dbus
|
|
}
|
|
|
|
start_pre() {
|
|
if [ -f "$conf_file" ]; then
|
|
. "$conf_file"
|
|
elif [ -f "$user_conf" ]; then
|
|
. "$user_conf"
|
|
fi
|
|
|
|
: "${JACK_OPTIONS:=}"
|
|
: "${DRIVER:=alsa}"
|
|
: "${DEVICE:=hw:0}"
|
|
: "${DRIVER_SETTINGS:=}"
|
|
|
|
command_args="$JACK_OPTIONS -d $DRIVER -d $DEVICE $DRIVER_SETTINGS"
|
|
}
|
|
|
|
start() {
|
|
checkpath -d -m 0755 /run
|
|
ulimit -r 95 || true
|
|
ulimit -l unlimited || true
|
|
ebegin "Starting ${RC_SVCNAME}"
|
|
start-stop-daemon \
|
|
--start \
|
|
--background \
|
|
--make-pidfile \
|
|
--pidfile "$pidfile" \
|
|
--exec "$command" -- $command_args
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping ${RC_SVCNAME}"
|
|
start-stop-daemon --stop --pidfile "$pidfile" --retry TERM/5
|
|
eend $?
|
|
}
|