summaryrefslogtreecommitdiff
path: root/audio/icecast1/files/icecast.sh
blob: bcc80dbeb9ef12b8551186066136312f140cd66f (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.1.1.1 2004/01/08 20:48: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