summaryrefslogtreecommitdiff
path: root/audio/icecast/files/icecast.sh
blob: 58def738fb92e8921dbfbf351eeb3b972f299c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: icecast.sh,v 1.2 2003/09/30 10:36:46 xtraeme Exp $
#
# PROVIDE: icecast
# REQUIRE: DAEMON LOGIN network


name="icecast"
command="@PREFIX@/bin/${name}"
mainconfigfile="@PKG_SYSCONFDIR@/${name}.conf"
icecast_flags="-c ${mainconfigfile} -d @PKG_SYSCONFDIR@ -b"
sig_stop="KILL"


. /etc/rc.subr


pidfile="/var/run/${name}.pid"
required_files="${mainconfigfile}"


load_rc_config $name
run_rc_command "$1"


if [ "$1" != "stop" ]; then
	echo $(check_process $command) > $pidfile
fi