summaryrefslogtreecommitdiff
path: root/media-sound/darkice/files/darkice.initd
blob: 307a0b4fe54c8d886badba40a2248ec88d70d288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

: ${DARKICE_USER:=root}
: ${DARKICE_GROUP:=root}
: ${DARKICE_LOGFILE:=/var/log/${RC_SVCNAME}.log}

name="darkice"
description="live audio streamer"
command=/usr/bin/darkice
command_args="${DARKICE_OPTS}"
command_user="${DARKICE_USER}:${DARKICE_GROUP}"
command_background=true
output_log="${DARKICE_LOGFILE}"
error_log="${DARKICE_LOGFILE}"
pidfile="/run/${RC_SVCNAME}.pid"

depend() {
	need net
	after icecast
	after jackd
}