mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
19 lines
396 B
Bash
19 lines
396 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="Icecast 2"
|
|
command="/usr/bin/icecast"
|
|
command_background=yes
|
|
: ${cfgfile:=/etc/icecast.xml}
|
|
: ${command_user:=icecast}
|
|
: ${command_group:=icecast}
|
|
command_args="-c $cfgfile ${ICEC_OPTS}"
|
|
pidfile="/run/icecast/icecast.pid"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner $command_user:$command_group ${pidfile%/*} /var/log/icecast
|
|
}
|