aboutsummaryrefslogblamecommitdiffstats
path: root/main/icecast/icecast.initd
blob: 11003c2e71743949ec78a8e3cc30d28655a5eaea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                  
 








                                       




                      

                                                                                                 
 
#!/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
}